summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:13:31 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:13:31 +0200
commitbc608737924c3c87d328b26654a16c7adc01bf4d (patch)
tree788df18aeddec1fb449d8110d5361a7b2559a8fa
parenta486c19d2c76e5d9f64779b42b195d8f2e371291 (diff)
downloaddyndhcpd-bc608737924c3c87d328b26654a16c7adc01bf4d.tar.gz
dyndhcpd-bc608737924c3c87d328b26654a16c7adc01bf4d.tar.zst
use ISO C11 standard
-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>