[dovecot-cvs] dovecot/src/lib fdpass.c,1.28,1.29
cras at procontrol.fi
cras at procontrol.fi
Tue Jun 15 02:42:25 EEST 2004
- Previous message: [dovecot-cvs]
dovecot/src/lib-storage/index/mbox istream-raw-mbox.c, 1.7,
1.8 mbox-mail.c, 1.3, 1.4 mbox-sync-rewrite.c, 1.12,
1.13 mbox-sync.c, 1.20, 1.21
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-lock.c, 1.4,
1.5 mbox-mail.c, 1.4, 1.5 mbox-storage.c, 1.77,
1.78 mbox-sync-private.h, 1.11, 1.12 mbox-sync.c, 1.21,
1.22 mbox-transaction.c, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv11171
Modified Files:
fdpass.c
Log Message:
Solaris fix by Tim Hurman
Index: fdpass.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/fdpass.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- fdpass.c 1 Dec 2003 19:07:34 -0000 1.28
+++ fdpass.c 14 Jun 2004 23:42:23 -0000 1.29
@@ -31,12 +31,20 @@
#include <sys/uio.h>
#ifndef CMSG_SPACE
-# define CMSG_ALIGN(len) \
+# if defined(_CMSG_DATA_ALIGN) && defined(_CMSG_HDR_ALIGN) /* for Solaris */
+# define CMSG_ALIGN(len) _CMSG_DATA_ALIGN(len)
+# define CMSG_SPACE(len) \
+ (_CMSG_DATA_ALIGN(len) + _CMSG_HDR_ALIGN(sizeof(struct cmsghdr)))
+# define CMSG_LEN(len) \
+ (_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)) + (len))
+# else
+# define CMSG_ALIGN(len) \
(((len) + sizeof(size_t) - 1) & ~(sizeof(size_t) - 1))
-# define CMSG_SPACE(len) \
+# define CMSG_SPACE(len) \
(CMSG_ALIGN(len) + CMSG_ALIGN(sizeof(struct cmsghdr)))
-# define CMSG_LEN(len) \
+# define CMSG_LEN(len) \
(CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+# endif
#endif
#ifdef SCM_RIGHTS
- Previous message: [dovecot-cvs]
dovecot/src/lib-storage/index/mbox istream-raw-mbox.c, 1.7,
1.8 mbox-mail.c, 1.3, 1.4 mbox-sync-rewrite.c, 1.12,
1.13 mbox-sync.c, 1.20, 1.21
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-lock.c, 1.4,
1.5 mbox-mail.c, 1.4, 1.5 mbox-storage.c, 1.77,
1.78 mbox-sync-private.h, 1.11, 1.12 mbox-sync.c, 1.21,
1.22 mbox-transaction.c, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list