diff options
| author | Jakub Hrozek <jakub.hrozek@gmail.com> | 2014-07-03 23:13:29 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2014-07-29 15:04:02 +0200 |
| commit | baa8b438f76e66531b26a90c02ab11d4e6c09944 (patch) | |
| tree | 3581ae5a0b01f6fac5c4a901b3a08e746ff34a2e /src | |
| parent | d9bae3a469d4803003711ae282a52d72905068e9 (diff) | |
| download | socket_wrapper-baa8b438f76e66531b26a90c02ab11d4e6c09944.tar.gz socket_wrapper-baa8b438f76e66531b26a90c02ab11d4e6c09944.tar.xz socket_wrapper-baa8b438f76e66531b26a90c02ab11d4e6c09944.zip | |
Provide a compatible declaration of CMSG_ALIGN
Some platforms (like OSX) do support some of the CMGS macros, but don't
have a CMSG_ALIGN macro of their own.
Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/socket_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 903eec2..930ab58 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -3336,7 +3336,7 @@ int ioctl(int s, unsigned long int r, ...) # ifdef _ALIGN /* BSD */ #define CMSG_ALIGN _ALIGN # else -#error NO_CMSG_ALIGN +#define CMSG_ALIGN(len) (((len) + sizeof(size_t) - 1) & ~(sizeof(size_t) - 1)) # endif /* _ALIGN */ #endif /* CMSG_ALIGN */ |
