patch: moved the include of resolv.h to after ngx_config.h to avoid

compilation failure on FreeBSD.
pull/361/head
Datong Sun 7 years ago
parent c01c548620
commit 8f5e4444d4
No known key found for this signature in database
GPG Key ID: 1908AE626BFCE242

@ -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 <ngx_core.h>
#include <ngx_event.h>
+#if !(NGX_WIN32)
+#include <resolv.h>
+#endif
+
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
@@ -15,6 +19,16 @@
#define NGX_RESOLVER_UDP_SIZE 4096
#define NGX_RESOLVER_TCP_RSIZE (2 + 65535)
#define NGX_RESOLVER_TCP_WSIZE 8192

Loading…
Cancel
Save