From 0a6b81772e4a8365bb1374ed5fcbf2d37cb78249 Mon Sep 17 00:00:00 2001 From: chenwei Date: Wed, 31 Jan 2018 09:02:25 +0800 Subject: [PATCH] Nginx : Fix Compile error Fix compile error when configure nginx with --with-stream --- app/nginx-1.11.10/src/stream/ngx_stream_core_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/nginx-1.11.10/src/stream/ngx_stream_core_module.c b/app/nginx-1.11.10/src/stream/ngx_stream_core_module.c index 49592de2..734a9d22 100644 --- a/app/nginx-1.11.10/src/stream/ngx_stream_core_module.c +++ b/app/nginx-1.11.10/src/stream/ngx_stream_core_module.c @@ -59,10 +59,10 @@ static ngx_command_t ngx_stream_core_commands[] = { #if (NGX_HAVE_FSTACK) { ngx_string("kernel_network_stack"), - NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_FLAG, + NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_FLAG, ngx_conf_set_flag_slot, - NGX_HTTP_SRV_CONF_OFFSET, - offsetof(ngx_http_core_srv_conf_t, kernel_network_stack), + NGX_STREAM_SRV_CONF_OFFSET, + offsetof(ngx_stream_core_srv_conf_t, kernel_network_stack), NULL }, #endif