diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-06-20 19:54:15 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-20 19:54:15 +0000 |
commit | 73a73b5a60b1c6c985f3e9a5d7cddbe292ad01a4 (patch) | |
tree | fe274167bb823494fe327e9f48a97a330cfe5c49 /src/os/unix/ngx_freebsd_config.h | |
parent | f7290501f2426950f6c3ff7a2e3280bfaa831f0b (diff) | |
download | nginx-73a73b5a60b1c6c985f3e9a5d7cddbe292ad01a4.tar.gz nginx-73a73b5a60b1c6c985f3e9a5d7cddbe292ad01a4.zip |
nginx-0.0.7-2004-06-20-23:54:15 import
Diffstat (limited to 'src/os/unix/ngx_freebsd_config.h')
-rw-r--r-- | src/os/unix/ngx_freebsd_config.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h index ce77ab938..570eee89b 100644 --- a/src/os/unix/ngx_freebsd_config.h +++ b/src/os/unix/ngx_freebsd_config.h @@ -35,6 +35,22 @@ #include <sys/sysctl.h> #include <netinet/tcp.h> /* TCP_NOPUSH */ + +#if __FreeBSD_version < 400017 + +#include <sys/param.h> /* ALIGN() */ + +/* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */ + +#undef CMSG_SPACE +#define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) + +#undef CMSG_DATA +#define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr))) + +#endif + + #include <ngx_auto_config.h> |