aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-17 13:25:03 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-17 13:25:03 +0200
commit85bb961cfffedf7b50133852339ae03ea7cf212d (patch)
treee5ee0e7d8a68e7f0439941862665ee5ca82038bc
parent4b42cc336919e48ea5770dbcb9fdd57093c2a418 (diff)
downloadnetlink-notify-85bb961cfffedf7b50133852339ae03ea7cf212d.tar.gz
netlink-notify-85bb961cfffedf7b50133852339ae03ea7cf212d.tar.zst
use ISO C11 standard
-rw-r--r--Makefile2
-rw-r--r--netlink-notify.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8408fde..e876952 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# netlink-notify - Notify about netlink changes
-CC := gcc
+CC := gcc -std=c11
MD := markdown
CONVERT := convert -define png:compression-level=9 -background transparent
INSTALL := install
diff --git a/netlink-notify.h b/netlink-notify.h
index 3ca7430..ced411d 100644
--- a/netlink-notify.h
+++ b/netlink-notify.h
@@ -8,6 +8,8 @@
#ifndef NETLINK_NOTIFY_H
#define NETLINK_NOTIFY_H
+#define _GNU_SOURCE
+
#include <asm/types.h>
#include <getopt.h>
#include <unistd.h>