From 7b147cb0c1eaa728f244cc8390ccfcc3f4aee03a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 25 May 2017 15:30:17 +0200 Subject: Add blind-from-named and blind-to-named MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 3a746f8..3e3f966 100644 --- a/src/common.h +++ b/src/common.h @@ -20,7 +20,13 @@ # include #endif #include +#if defined(HAVE_SENDFILE) +# include +#endif #include +#include +#include +#include #include #include #include @@ -35,3 +41,19 @@ #include #include #include + +#ifndef CMSG_ALIGN +# ifdef __sun__ +# define CMSG_ALIGN _CMSG_DATA_ALIGN +# else +# define CMSG_ALIGN(len) (((len) + sizeof(long) - 1) & ~(sizeof(long) - 1)) +# endif +#endif + +#ifndef CMSG_SPACE +# define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) +#endif + +#ifndef CMSG_LEN +# define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) +#endif -- cgit v1.2.3-70-g09d2