aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:17:53 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:17:53 +0200
commit347a5bbe1b6fba26f8e20376bd9d2c97ac0b14ad (patch)
tree07d3ab658126cf2768df2906983c001bf5d5e2b4
parentdad179dcc38dd460b9e4bf907bc4c7a44aba58ab (diff)
downloadnullshell-347a5bbe1b6fba26f8e20376bd9d2c97ac0b14ad.tar.gz
nullshell-347a5bbe1b6fba26f8e20376bd9d2c97ac0b14ad.tar.zst
use ISO C11 standard
-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>