Mercurial > hg > nginx
diff src/os/unix/ngx_freebsd_config.h @ 361:446782c909b3
nginx-0.0.7-2004-06-20-23:54:15 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 20 Jun 2004 19:54:15 +0000 |
parents | 0fb6c53fb135 |
children | 54f76b0b8dca |
line wrap: on
line diff
--- 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>