1
0
mirror of https://github.com/wg/wrk synced 2025-01-23 04:02:59 +08:00

define _DEFAULT_SOURCE on linux

This commit is contained in:
Will 2018-01-21 15:00:58 +09:00
parent a5d9db0bd0
commit 7594a95186

View File

@ -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)