summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-02 15:32:23 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-04-02 15:32:23 (GMT)
commit8aa0a0c18f3c9b27b740aefd0ec4c3e2f34f7fd2 (patch)
tree44ea0a66f025b4cba55a1d34d7a30d0ed72e9492
parente9e4ee6ffa7fa316ba8d479e19639391a3d58e57 (diff)
downloadlibnsutils-8aa0a0c18f3c9b27b740aefd0ec4c3e2f34f7fd2.tar.gz
libnsutils-8aa0a0c18f3c9b27b740aefd0ec4c3e2f34f7fd2.tar.bz2
need _GNU_SOURCE to be defined to get useful unistd on some platforms
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e84dc12..833cc1d 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs
-CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \
+CFLAGS := -D_GNU_SOURCE -D_DEFAULT_SOURCE \
-I$(CURDIR)/include/ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
ifneq ($(GCCVER),2)
CFLAGS := $(CFLAGS) -std=c99