diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-02 16:25:10 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-02 16:25:10 +0100 |
commit | e9e4ee6ffa7fa316ba8d479e19639391a3d58e57 (patch) | |
tree | c31068640681ac665ae63f5711b164e3932cb9de /Makefile | |
parent | 7edbb1ad09a34424f295b123505f0aa69c696a72 (diff) | |
download | libnsutils-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |