aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--nullshell.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ece0fae..2e8c530 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ CC := gcc
MD := markdown
INSTALL := install
RM := rm
-CFLAGS += -O2 -Wall -Werror
+CFLAGS += -std=c11 -O2 -Wall -Werror
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
VERSION := 0.0.5
diff --git a/nullshell.c b/nullshell.c
index 7422b4a..ef054ab 100644
--- a/nullshell.c
+++ b/nullshell.c
@@ -8,6 +8,8 @@
* by Mario A. Valdez-Ramirez (http://www.mariovaldez.net/)
*/
+#define _GNU_SOURCE
+
#include <inttypes.h>
#include <signal.h>
#include <stdio.h>