summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--dyndhcpd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ce1fbf9..c515955 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ MD := markdown
INSTALL := install
RM := rm
CP := cp
-CFLAGS += -O2 -Wall -Werror
+CFLAGS += -std=c11 -O2 -Wall -Werror
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
VERSION := 0.0.8
diff --git a/dyndhcpd.c b/dyndhcpd.c
index 59a197a..16b4941 100644
--- a/dyndhcpd.c
+++ b/dyndhcpd.c
@@ -7,6 +7,8 @@
* This is an example code skeleton provided by vim-skeleton.
*/
+#define _GNU_SOURCE
+
#include <arpa/inet.h>
#include <sys/socket.h>
#include <net/if.h>