comparison src/os/unix/ngx_freebsd_config.h @ 4016:b044d6553d52

Move SO_ACCEPTFILTER and TCP_DEFER_ACCEPT checks into configure. NetBSD 5.0+ has SO_ACCEPTFILTER support merged from FreeBSD, and having accept filter check in FreeBSD-specific ngx_freebsd_config.h prevents it from being used on NetBSD. Therefore move the check into configure (and do the same for Linux-specific TCP_DEFER_ACCEPT, just to be in line).
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 21 Aug 2011 11:37:37 +0000
parents 0daede16d68b
children 1b779cb69dc8 4919fb357a5d
comparison
equal deleted inserted replaced
4015:e0a435f5f504 4016:b044d6553d52
90 90
91 91
92 #define NGX_LISTEN_BACKLOG -1 92 #define NGX_LISTEN_BACKLOG -1
93 93
94 94
95 #if (defined SO_ACCEPTFILTER && !defined NGX_HAVE_DEFERRED_ACCEPT)
96 #define NGX_HAVE_DEFERRED_ACCEPT 1
97 #endif
98
99
100 #if (__FreeBSD_version < 430000 || __FreeBSD_version < 500012) 95 #if (__FreeBSD_version < 430000 || __FreeBSD_version < 500012)
101 96
102 pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg); 97 pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg);
103 98
104 #endif 99 #endif