clean up / fix #include
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 13:13:56 +0000 (14:13 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 13:13:56 +0000 (14:13 +0100)
auth.c
main.c
utils.h

diff --git a/auth.c b/auth.c
index afab2c086eac5e8f07b8995547c1e97c12f3b85e..301e9383f9c05aa27fa439d53d57dcfff8b593e3 100644 (file)
--- a/auth.c
+++ b/auth.c
@@ -19,6 +19,7 @@
 
 #define _GNU_SOURCE
 #define _XOPEN_SOURCE  700
+#include <strings.h>
 #include "uhttpd.h"
 
 static LIST_HEAD(auth_realms);
diff --git a/main.c b/main.c
index 26dc55c0f564f65bb777afbe53fc7273e2a5b89b..ce5123b2b94884422c2691e26a8db9a59da52945 100644 (file)
--- a/main.c
+++ b/main.c
@@ -17,6 +17,7 @@
  *  limitations under the License.
  */
 
+#define _BSD_SOURCE
 #define _GNU_SOURCE
 #define _XOPEN_SOURCE  700
 #include <sys/types.h>
@@ -27,7 +28,6 @@
 #include <errno.h>
 #include <netdb.h>
 #include <signal.h>
-#include <unistd.h>
 
 #include <libubox/usock.h>
 
diff --git a/utils.h b/utils.h
index ab00399b6654071a1e38e061e6c909839aaa2cb6..49e242edce12482d34e28352a265ef7fc061a1e6 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -27,6 +27,8 @@
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
+#include <alloca.h>
+#include <time.h>
 #include <unistd.h>
 
 struct uh_addr {