summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--udev-block-notify.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4152182..6c7049f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# udev-block-notify - Notify about udev block events
-CC := gcc
+CC := gcc -std=c11
MD := markdown
INSTALL := install
RM := rm
diff --git a/udev-block-notify.c b/udev-block-notify.c
index e71c6c3..e05e13b 100644
--- a/udev-block-notify.c
+++ b/udev-block-notify.c
@@ -5,6 +5,8 @@
* of the GNU General Public License, incorporated herein by reference.
*/
+#define _GNU_SOURCE
+
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>