commit 3bed6bba8bed33191315773d12641fb18bbddda2
parent 96c5d330ecfa1138bc4bcfa2505e8e68d1c5be7f
Author: sin <sin@2f30.org>
Date: Fri, 4 Jul 2014 11:55:11 +0100
Set GNU_SOURCE in CFLAGS
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -Os -std=c99 -Wall -Wextra -pedantic
+CFLAGS += -Os -std=c99 -Wall -Wextra -pedantic -D_GNU_SOURCE
LDFLAGS += -s -static
all: crond
diff --git a/crond.c b/crond.c
@@ -1,6 +1,4 @@
/* See LICENSE file for copyright and license details. */
-#define _GNU_SOURCE
-
#include <sys/types.h>
#include <sys/wait.h>