summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony J. Bentley <anthony@anjbe.name>2019-02-15 16:31:06 +0000
committerVincent Sanders <vince@kyllikki.org>2019-02-15 16:31:06 +0000
commitd1fa6a8ee1e53aebd8d3a7baa3b27f27e71972c2 (patch)
tree58dc9f81f429fc5b5e8624a102382b154f1cfe5f
parent9501c9e68d336f894470d45a317f9a2123dcca80 (diff)
downloadnetsurf-d1fa6a8ee1e53aebd8d3a7baa3b27f27e71972c2.tar.gz
netsurf-d1fa6a8ee1e53aebd8d3a7baa3b27f27e71972c2.tar.bz2
fix feature flags for openbsd
-rw-r--r--frontends/framebuffer/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/frontends/framebuffer/Makefile b/frontends/framebuffer/Makefile
index a99031ef9..9051a8801 100644
--- a/frontends/framebuffer/Makefile
+++ b/frontends/framebuffer/Makefile
@@ -54,14 +54,19 @@ LDFLAGS += -Wl,--no-whole-archive
# HOST specific feature flags
# ---------------------------------------------------------------------------
-# enable POSIX and XSI features.
-# everywhere but freebsd where the default set already has them enabled
+# enable POSIX and XSI feature flasg except:
+# - the default set on freebsd already has them enabled
+# - openbsd does not require the default source flags
ifneq ($(HOST),FreeBSD)
- CFLAGS += -D_POSIX_C_SOURCE=200809L \
- -D_XOPEN_SOURCE=700 \
- -D_BSD_SOURCE \
- -D_DEFAULT_SOURCE \
- -D_NETBSD_SOURCE
+ ifneq ($(HOST),OpenBSD)
+ CFLAGS += -D_POSIX_C_SOURCE=200809L \
+ -D_XOPEN_SOURCE=700 \
+ -D_BSD_SOURCE \
+ -D_DEFAULT_SOURCE \
+ -D_NETBSD_SOURCE
+ else
+ CFLAGS += -D_POSIX_C_SOURCE=200809L
+ endif
endif
# ----------------------------------------------------------------------------