summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 13:50:59 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-03 13:51:02 +0100
commit9c767787dba81bd5713e1a45eef8b381e7d4b79b (patch)
tree97a15dc39e26098242faa2c05905a941455e356c
parent92f4e1306dd060106a3f5c5f61303d9613f93888 (diff)
fix compile errors on linux
-rw-r--r--auth.c2
-rw-r--r--main.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/auth.c b/auth.c
index c27488f..afab2c0 100644
--- a/auth.c
+++ b/auth.c
@@ -17,6 +17,8 @@
* limitations under the License.
*/
+#define _GNU_SOURCE
+#define _XOPEN_SOURCE 700
#include "uhttpd.h"
static LIST_HEAD(auth_realms);
diff --git a/main.c b/main.c
index 100e285..26dc55c 100644
--- a/main.c
+++ b/main.c
@@ -17,6 +17,8 @@
* limitations under the License.
*/
+#define _GNU_SOURCE
+#define _XOPEN_SOURCE 700
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -25,6 +27,7 @@
#include <errno.h>
#include <netdb.h>
#include <signal.h>
+#include <unistd.h>
#include <libubox/usock.h>