summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-02 15:25:10 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-04-02 15:25:10 (GMT)
commite9e4ee6ffa7fa316ba8d479e19639391a3d58e57 (patch)
treec31068640681ac665ae63f5711b164e3932cb9de
parent7edbb1ad09a34424f295b123505f0aa69c696a72 (diff)
downloadlibnsutils-e9e4ee6ffa7fa316ba8d479e19639391a3d58e57.tar.gz
libnsutils-e9e4ee6ffa7fa316ba8d479e19639391a3d58e57.tar.bz2
need _BSD_SOURCE to be defined to get useful unistd on some platforms
-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