]> andersk Git - openssh.git/blobdiff - defines.h
- (stevesk) [auth1.c] fix password auth for protocol 1 when
[openssh.git] / defines.h
index a26e93044923884e5e9e184661da8838e1fa2ead..e252becbd1e389e6f0db29bcb022846cfc00add2 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -440,6 +440,30 @@ struct winsize {
 # define howmany(x,y)  (((x)+((y)-1))/(y))
 #endif
 
+#ifdef __hpux
+#define MAP_ANON MAP_ANONYMOUS
+#endif
+
+#ifndef ALIGNBYTES
+#define ALIGNBYTES     (sizeof(int) - 1)
+#endif
+#ifndef ALIGN
+#define ALIGN(p)       (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+#endif
+#ifndef __CMSG_ALIGN
+#define        __CMSG_ALIGN(len)       ALIGN(len)
+#endif
+
+/* Length of the contents of a control message of length len */
+#ifndef CMSG_LEN
+#define        CMSG_LEN(len)   (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+#endif
+
+/* Length of the space taken up by a padded control message of length len */
+#ifndef CMSG_SPACE
+#define        CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len))
+#endif
+
 /* Function replacement / compatibility hacks */
 
 /* In older versions of libpam, pam_strerror takes a single argument */
This page took 0.031423 seconds and 4 git commands to generate.