From 7594a95186ebdfa7cb35477a8a811f84e2a31b62 Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 21 Jan 2018 15:00:58 +0900 Subject: [PATCH] define _DEFAULT_SOURCE on linux --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7558faf..d555f0a 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ ifeq ($(TARGET), sunos) else ifeq ($(TARGET), darwin) LDFLAGS += -pagezero_size 10000 -image_base 100000000 else ifeq ($(TARGET), linux) - CFLAGS += -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE + CFLAGS += -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE LIBS += -ldl LDFLAGS += -Wl,-E else ifeq ($(TARGET), freebsd)