summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-02 16:25:10 +0100
committerVincent Sanders <vince@kyllikki.org>2015-04-02 16:25:10 +0100
commite9e4ee6ffa7fa316ba8d479e19639391a3d58e57 (patch)
treec31068640681ac665ae63f5711b164e3932cb9de /Makefile
parent7edbb1ad09a34424f295b123505f0aa69c696a72 (diff)
downloadlibnsutils-e9e4ee6ffa7fa316ba8d479e19639391a3d58e57.tar.gz
libnsutils-e9e4ee6ffa7fa316ba8d479e19639391a3d58e57.tar.bz2
need _BSD_SOURCE to be defined to get useful unistd on some platforms
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10b2120..e84dc12 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,8 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs
-CFLAGS := -I$(CURDIR)/include/ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
+CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \
+ -I$(CURDIR)/include/ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
ifneq ($(GCCVER),2)
CFLAGS := $(CFLAGS) -std=c99
else