aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-17 13:26:42 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-17 13:26:42 +0200
commit1228fb573ea8155565257119ccd4b237d694d0ef (patch)
tree0bcede54a4ebfc9b31cac6a9b29121f14dec2db5
parentefcbff3aba4e0fc37bcb3f1453119a4aa8b466fb (diff)
downloadjournal-notify-1228fb573ea8155565257119ccd4b237d694d0ef.tar.gz
journal-notify-1228fb573ea8155565257119ccd4b237d694d0ef.tar.zst
use ISO C11 standard
-rw-r--r--Makefile2
-rw-r--r--journal-notify.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8975f91..2241cd5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# journal-notify - Notify about journal log entries
-CC := gcc
+CC := gcc -std=c11
MD := markdown
INSTALL := install
CP := cp
diff --git a/journal-notify.h b/journal-notify.h
index 858b9c8..c3308c5 100644
--- a/journal-notify.h
+++ b/journal-notify.h
@@ -8,6 +8,8 @@
#ifndef _JOURNAL_NOTIFY_H
#define _JOURNAL_NOTIFY_H
+#define _GNU_SOURCE
+
#include <getopt.h>
#include <regex.h>
#include <stdio.h>