summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auth.c1
-rw-r--r--main.c2
-rw-r--r--utils.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/auth.c b/auth.c
index afab2c0..301e938 100644
--- 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 26dc55c..ce5123b 100644
--- 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 ab00399..49e242e 100644
--- 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 {