_XOPEN_SOURCE needs defining to avoid warnings on BSD

This commit is contained in:
Vincent Sanders 2018-09-06 12:35:36 +01:00
parent 2596331640
commit 05b9baadbc

View File

@ -12,6 +12,7 @@ CWARNFLAGS += -Werror
CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=700 \
-D_POSIX_C_SOURCE=200809L \
-D_NETBSD_SOURCE \
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"