summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>