From 8aa0a0c18f3c9b27b740aefd0ec4c3e2f34f7fd2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 2 Apr 2015 16:32:23 +0100 Subject: need _GNU_SOURCE to be defined to get useful unistd on some platforms --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3