comparison src/os/unix/ngx_linux_config.h @ 4243:997651ba1871 stable-1.0

Merging r4017: 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 Igor Sysoev <igor@sysoev.ru>
date Tue, 01 Nov 2011 11:25:15 +0000
parents 0daede16d68b
children 1b779cb69dc8 4919fb357a5d
comparison
equal deleted inserted replaced
4242:025396b57ec1 4243:997651ba1871
94 94
95 95
96 #define NGX_LISTEN_BACKLOG 511 96 #define NGX_LISTEN_BACKLOG 511
97 97
98 98
99 #if defined TCP_DEFER_ACCEPT && !defined NGX_HAVE_DEFERRED_ACCEPT
100 #define NGX_HAVE_DEFERRED_ACCEPT 1
101 #endif
102
103
104 #ifndef NGX_HAVE_SO_SNDLOWAT 99 #ifndef NGX_HAVE_SO_SNDLOWAT
105 /* setsockopt(SO_SNDLOWAT) returns ENOPROTOOPT */ 100 /* setsockopt(SO_SNDLOWAT) returns ENOPROTOOPT */
106 #define NGX_HAVE_SO_SNDLOWAT 0 101 #define NGX_HAVE_SO_SNDLOWAT 0
107 #endif 102 #endif
108 103