Define _GNU_SOURCE in CFLAGS, not req.c

This commit is contained in:
Cheer Xiao 2013-06-18 22:29:41 +08:00
parent e7ae49adde
commit 5bb812c56e
2 changed files with 1 additions and 2 deletions

View File

@ -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 |>

View File

@ -1,4 +1,3 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>