define _DEFAULT_SOURCE as well as _BSD_SOURCE to supress warnings in glibc 2.12

This commit is contained in:
Vincent Sanders 2015-03-28 18:15:27 +00:00
parent 22e0c0536a
commit e62db5a49c
3 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ $(eval $(call pkg_config_find_and_add_enabled,JS,mozilla-js,JavaScript))
CFLAGS += -std=c99 -g -Dsmall \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200112L \
$(shell $(PKG_CONFIG) --cflags libnsfb libhubbub libcss openssl)

View File

@ -49,6 +49,7 @@ GTKDEPFLAGS := -DG_DISABLE_SINGLE_INCLUDES \
GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \
$(GTKDEPFLAGS) \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200809L \
-D_NETBSD_SOURCE \

View File

@ -37,6 +37,7 @@ CWARNFLAGS += -Werror
CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200112L \
-D_NETBSD_SOURCE \