summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--mpd-notification.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ebafd6..9502e74 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# mpd-notification - Notify about tracks played by mpd
-CC := gcc
+CC := gcc -std=c11
MD := markdown
INSTALL := install
CP := cp
diff --git a/mpd-notification.h b/mpd-notification.h
index 7ff485c..0a32b97 100644
--- a/mpd-notification.h
+++ b/mpd-notification.h
@@ -8,6 +8,8 @@
#ifndef MPD_NOTIFICATION_H
#define MPD_NOTIFICATION_H
+#define _GNU_SOURCE
+
#include <mpd/client.h>
#include <libnotify/notify.h>