[nginx] Core: ensure that ngx_config.h is always included first.

Maxim Dounin mdounin at mdounin.ru
Thu Apr 16 16:26:38 UTC 2015


details:   http://hg.nginx.org/nginx/rev/db08fed33195
branches:  stable-1.8
changeset: 6107:db08fed33195
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Thu Apr 16 18:18:37 2015 +0300
description:
Core: ensure that ngx_config.h is always included first.

This fixes compilation of various 3rd party modules when nginx is
configured with threads.

diffstat:

 src/core/ngx_core.h |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -9,6 +9,9 @@
 #define _NGX_CORE_H_INCLUDED_
 
 
+#include <ngx_config.h>
+
+
 typedef struct ngx_module_s      ngx_module_t;
 typedef struct ngx_conf_s        ngx_conf_t;
 typedef struct ngx_cycle_s       ngx_cycle_t;



More information about the nginx-devel mailing list