mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 08:19:55 +03:00
fix feature flags for openbsd
This commit is contained in:
parent
9501c9e68d
commit
d1fa6a8ee1
@ -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
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user