summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-28 18:15:27 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-28 18:25:41 +0000
commite62db5a49cbd7c8786a1b88617e5629ad0d0f64e (patch)
treed5bf8f5dd01afee3545243eeaa65638f323fb1c1
parent22e0c0536a3f9a881ad9e80a9562580c143b06a9 (diff)
downloadnetsurf-e62db5a49cbd7c8786a1b88617e5629ad0d0f64e.tar.gz
netsurf-e62db5a49cbd7c8786a1b88617e5629ad0d0f64e.tar.bz2
define _DEFAULT_SOURCE as well as _BSD_SOURCE to supress warnings in glibc 2.12
-rw-r--r--framebuffer/Makefile.target1
-rw-r--r--gtk/Makefile.target1
-rw-r--r--monkey/Makefile.target1
3 files changed, 3 insertions, 0 deletions
diff --git a/framebuffer/Makefile.target b/framebuffer/Makefile.target
index 699c8da80..edc059118 100644
--- a/framebuffer/Makefile.target
+++ b/framebuffer/Makefile.target
@@ -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)
diff --git a/gtk/Makefile.target b/gtk/Makefile.target
index 805488bd0..e69f6c267 100644
--- a/gtk/Makefile.target
+++ b/gtk/Makefile.target
@@ -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 \
diff --git a/monkey/Makefile.target b/monkey/Makefile.target
index d3c974782..751746343 100644
--- a/monkey/Makefile.target
+++ b/monkey/Makefile.target
@@ -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 \