]> git.kaiwu.me - nginx.git/commitdiff
Removed unused FreeBSD-specific definitions in ngx_posix_config.h.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 28 Nov 2017 10:09:54 +0000 (13:09 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 28 Nov 2017 10:09:54 +0000 (13:09 +0300)
src/os/unix/ngx_posix_config.h

index 5d1358e247dd04cfe1de7452a9490fe6dd165f11..2a8c413e0ca9d25964ae90c777e36f72ea892bef 100644 (file)
@@ -145,26 +145,6 @@ typedef struct aiocb  ngx_aiocb_t;
 #define ngx_debug_init()
 
 
-#if (__FreeBSD__) && (__FreeBSD_version < 400017)
-
-#include <sys/param.h>          /* ALIGN() */
-
-/*
- * FreeBSD 3.x has no CMSG_SPACE() and CMSG_LEN() and has the broken CMSG_DATA()
- */
-
-#undef  CMSG_SPACE
-#define CMSG_SPACE(l)       (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
-
-#undef  CMSG_LEN
-#define CMSG_LEN(l)         (ALIGN(sizeof(struct cmsghdr)) + (l))
-
-#undef  CMSG_DATA
-#define CMSG_DATA(cmsg)     ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr)))
-
-#endif
-
-
 extern char **environ;