]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: removed two NGX_HAVE_DEFERRED_ACCEPT checks.
authorRuslan Ermilov <ru@nginx.com>
Mon, 3 Oct 2016 12:58:30 +0000 (15:58 +0300)
committerRuslan Ermilov <ru@nginx.com>
Mon, 3 Oct 2016 12:58:30 +0000 (15:58 +0300)
Removed (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
from the signature accordingly.

src/core/ngx_connection.h
src/core/ngx_module.h
src/http/ngx_http_core_module.h

index 36907dda7e9a32256104f32147f6297fc92ed6c6..1472090e5501b76cc8a7446d0f58b264db8882db 100644 (file)
@@ -73,14 +73,12 @@ struct ngx_listening_s {
     unsigned            add_reuseport:1;
     unsigned            keepalive:2;
 
-#if (NGX_HAVE_DEFERRED_ACCEPT)
     unsigned            deferred_accept:1;
     unsigned            delete_deferred:1;
     unsigned            add_deferred:1;
-#ifdef SO_ACCEPTFILTER
+#if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
     char               *accept_filter;
 #endif
-#endif
 #if (NGX_HAVE_SETFIB)
     int                 setfib;
 #endif
index 51a9baa060ca911dc74cf4576abe3691fe582278..10a7eabafbe13f1d4380aa37f9bb77629b803a36 100644 (file)
 #define NGX_MODULE_SIGNATURE_11  "0"
 #endif
 
-#if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
 #define NGX_MODULE_SIGNATURE_12  "1"
-#else
-#define NGX_MODULE_SIGNATURE_12  "0"
-#endif
 
 #if (NGX_HAVE_SETFIB)
 #define NGX_MODULE_SIGNATURE_13  "1"
index 78f69e2248ce93dd8229edee41508b25eeebbbc3..628679ff3bcac472362d8d8b967d422f1e9da655 100644 (file)
@@ -72,6 +72,7 @@ typedef struct {
 #if (NGX_HAVE_INET6)
     unsigned                   ipv6only:1;
 #endif
+    unsigned                   deferred_accept:1;
     unsigned                   reuseport:1;
     unsigned                   so_keepalive:2;
     unsigned                   proxy_protocol:1;
@@ -94,9 +95,6 @@ typedef struct {
 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
     char                      *accept_filter;
 #endif
-#if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
-    ngx_uint_t                 deferred_accept;
-#endif
 
     u_char                     addr[NGX_SOCKADDR_STRLEN + 1];
 } ngx_http_listen_opt_t;