From 5bb812c56e5cb416f89b558af31fa47d5766b3f9 Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Tue, 18 Jun 2013 22:29:41 +0800 Subject: [PATCH] Define _GNU_SOURCE in CFLAGS, not req.c --- Tuprules.tup | 2 +- server/req.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Tuprules.tup b/Tuprules.tup index bdc9d69b..bc46ac1a 100644 --- a/Tuprules.tup +++ b/Tuprules.tup @@ -2,7 +2,7 @@ CC = clang LD = clang -CFLAGS = -Wall -g +CFLAGS = -Wall -g -D_GNU_SOURCE LDFLAGS = -ljansson !cc = |> $(CC) $(CFLAGS) -c %f -o %o |> diff --git a/server/req.c b/server/req.c index 2795a3b6..e5dde7cf 100644 --- a/server/req.c +++ b/server/req.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE #include #include #include