summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2024-03-05 11:44:59 +0000
committerVincent Sanders <vince@kyllikki.org>2024-03-05 11:44:59 +0000
commita8a5b16df3b4b46d02f0eab17562e5223bd57756 (patch)
tree2f73f8cc5ded8aae3e7fe66f24744f33e05c794a
parent583ec7268083fa2f4005067e0314ff9a56e62664 (diff)
downloadnetsurf-a8a5b16df3b4b46d02f0eab17562e5223bd57756.tar.gz
netsurf-a8a5b16df3b4b46d02f0eab17562e5223bd57756.tar.bz2
fix c library API flags for freebsd when building GTK
-rw-r--r--frontends/gtk/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/gtk/Makefile b/frontends/gtk/Makefile
index 79f03b370..64a0872ba 100644
--- a/frontends/gtk/Makefile
+++ b/frontends/gtk/Makefile
@@ -34,13 +34,19 @@ ifeq ($(NETSURF_GTK_MAJOR),2)
GTKDEPFLAGS += -DGTK_DISABLE_DEPRECATED
endif
+# C library API control
+ifeq ($(HOST),FreeBSD)
+CAPIFLAGS :=
+else
+CAPIFLAGS := -D_XOPEN_SOURCE=700 \
+ -D_POSIX_C_SOURCE=200809L
+endif
GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \
$(GTKDEPFLAGS) \
+ $(CAPIFLAGS) \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
- -D_XOPEN_SOURCE=700 \
- -D_POSIX_C_SOURCE=200809L \
-D_NETBSD_SOURCE \
-DGTK_RESPATH=\"$(NETSURF_GTK_RES_PATH)\"