summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-06-25 20:37:29 +0200
committerChristian Persch <chpe@src.gnome.org>2022-06-25 20:37:29 +0200
commit0372107ad01e84912ac6c4806f4b6b1c47d8634b (patch)
treeaaf2889d80234e71533b7f494a8edab37b79aac9
parent9daa0f24da191a52e1344148ac3c0c5dcf20a6b6 (diff)
downloadvte-0372107ad01e84912ac6c4806f4b6b1c47d8634b.tar.gz
build: Make sure __BSD_VISIBLE is defined on freebsd
By not defining any of the other feature macros, it *should* enable all of them. https://gitlab.gnome.org/GNOME/vte/-/issues/2564
-rw-r--r--meson.build8
1 files changed, 3 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 6a0629c8..15200e31 100644
--- a/meson.build
+++ b/meson.build
@@ -223,12 +223,10 @@ libc_feature_defines = [
if host_machine.system() == 'freebsd'
# Defining _POSIX_C_SOURCE above makes freebsd not expose some functionality
- # that's hidden behind __BSD_VISIBLE. Since there appears to be no other way
- # to make everything visible, just forcibly define __BSD_VISIBLE.
+ # that's hidden behind __BSD_VISIBLE. Not defininy any of the above however
+ # makes it expose verything.
- libc_feature_defines += [
- ['__BSD_VISIBLE', '1'],
- ]
+ libc_feature_defines = []
endif
foreach f: libc_feature_defines