dont define _XOPEN_SOURCE with FreeBSD

This commit is contained in:
Thomas Bernard 2015-09-04 12:16:16 +02:00
parent 2889f0a6ca
commit 6728b12965
1 changed files with 2 additions and 0 deletions

View File

@ -36,8 +36,10 @@ CFLAGS += -fno-common
CFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT CFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT
CFLAGS += -DMINIUPNPC_GET_SRC_ADDR CFLAGS += -DMINIUPNPC_GET_SRC_ADDR
CFLAGS += -D_BSD_SOURCE -D_DEFAULT_SOURCE CFLAGS += -D_BSD_SOURCE -D_DEFAULT_SOURCE
ifneq ($(OS), FreeBSD)
#CFLAGS += -D_POSIX_C_SOURCE=200112L #CFLAGS += -D_POSIX_C_SOURCE=200112L
CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += -D_XOPEN_SOURCE=600
endif
#CFLAGS += -ansi #CFLAGS += -ansi
# -DNO_GETADDRINFO # -DNO_GETADDRINFO
INSTALL = install INSTALL = install