From 85940c8045b3b69a696d4a8f9d8bbb04303fcd67 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Sat, 4 Jan 2014 02:05:18 +0000
Subject: [PATCH] Moved <netdb.h> to under unix includes

---
 mongoose.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mongoose.c b/mongoose.c
index eecddae9d..94012acf3 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -91,6 +91,7 @@ typedef struct _stati64 file_stat_t;
 #include <pwd.h>
 #include <signal.h>
 #include <unistd.h>
+#include <netdb.h>
 #include <arpa/inet.h>  // For inet_pton() when USE_IPV6 is defined
 #include <netinet/in.h>
 #include <sys/socket.h>
@@ -2718,7 +2719,6 @@ int mg_parse_header(const char *str, const char *var_name, char *buf,
 }
 
 #ifdef USE_LUA
-#include <netdb.h>
 #include "lua_5.2.1.h"
 
 static void reg_string(struct lua_State *L, const char *name, const char *val) {
-- 
GitLab