From 8f5e4444d459460acb6e78fbbdbb3ae66f00dea3 Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Thu, 19 Apr 2018 17:45:43 -0700 Subject: [PATCH] patch: moved the include of resolv.h to after ngx_config.h to avoid compilation failure on FreeBSD. --- patches/nginx-1.13.6-resolver_conf_parsing.patch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/patches/nginx-1.13.6-resolver_conf_parsing.patch b/patches/nginx-1.13.6-resolver_conf_parsing.patch index ae17438..8638cdf 100644 --- a/patches/nginx-1.13.6-resolver_conf_parsing.patch +++ b/patches/nginx-1.13.6-resolver_conf_parsing.patch @@ -1,19 +1,18 @@ diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c -index cd55520c..7e7fca92 100644 +index cd55520c..dade1846 100644 --- a/src/core/ngx_resolver.c +++ b/src/core/ngx_resolver.c -@@ -5,6 +5,10 @@ - */ - +@@ -9,12 +9,26 @@ + #include + #include +#if !(NGX_WIN32) +#include +#endif + - #include - #include - #include -@@ -15,6 +19,16 @@ + + #define NGX_RESOLVER_UDP_SIZE 4096 + #define NGX_RESOLVER_TCP_RSIZE (2 + 65535) #define NGX_RESOLVER_TCP_WSIZE 8192