summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-17 12:07:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-17 12:07:50 +0200
commit4708fa8f35f370e7da8befad594250f8317009c9 (patch)
treed9cc3600e1b4aa9a9dca23ea9fbf690f9facb24b
parent88c1f6569f4965504aefca75b8633fb6465aa490 (diff)
downloadudev-block-notify-4708fa8f35f370e7da8befad594250f8317009c9.tar.gz
udev-block-notify-4708fa8f35f370e7da8befad594250f8317009c9.tar.zst
use ISO C11, the 2011 revision of the ISO C standard
In traditional mode preprocessing directives are recognized only when their leading `#' appears in the first column. There can be no whitespace between the beginning of the line and the `#'. So use ISO C11 and close #4. (I hope so.)
-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>