mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-03 13:51:46 +03:00
define _DEFAULT_SOURCE as well as _BSD_SOURCE to supress warnings in glibc 2.12
This commit is contained in:
parent
22e0c0536a
commit
e62db5a49c
@ -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)
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user