comparison 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
comparison
equal deleted inserted replaced
360:239e37d44a34 361:446782c909b3
32 32
33 #include <libutil.h> /* setproctitle() before 4.1 */ 33 #include <libutil.h> /* setproctitle() before 4.1 */
34 #include <osreldate.h> 34 #include <osreldate.h>
35 #include <sys/sysctl.h> 35 #include <sys/sysctl.h>
36 #include <netinet/tcp.h> /* TCP_NOPUSH */ 36 #include <netinet/tcp.h> /* TCP_NOPUSH */
37
38
39 #if __FreeBSD_version < 400017
40
41 #include <sys/param.h> /* ALIGN() */
42
43 /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */
44
45 #undef CMSG_SPACE
46 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
47
48 #undef CMSG_DATA
49 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr)))
50
51 #endif
52
37 53
38 #include <ngx_auto_config.h> 54 #include <ngx_auto_config.h>
39 55
40 56
41 #ifndef HAVE_SELECT 57 #ifndef HAVE_SELECT