diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-06-24 22:11:13 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-06-24 22:11:13 +0200 |
commit | c033d7583ec6d565e5a4be902cca1e1c882e07a7 (patch) | |
tree | 1a3a22b00164cad7acc9d3d73c924dd8b55f378d | |
parent | bd65f62bb4eb9329b51b4665ab2abefbc4f5ff81 (diff) | |
download | vte-c033d7583ec6d565e5a4be902cca1e1c882e07a7.tar.gz |
build: Define __BSD_VISIBLE on freebsd
https://gitlab.gnome.org/GNOME/vte/-/issues/2564#note_1485997
-rw-r--r-- | meson.build | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 83901580..6a0629c8 100644 --- a/meson.build +++ b/meson.build @@ -218,9 +218,19 @@ libc_feature_defines = [ ['_GNU_SOURCE', '1'], ['_POSIX_C_SOURCE', '200809L'], ['_XOPEN_SOURCE', '700'], - ['_XOPEN_SOURCE_EXTENDED', 1], + ['_XOPEN_SOURCE_EXTENDED', '1'], ] +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. + + libc_feature_defines += [ + ['__BSD_VISIBLE', '1'], + ] +endif + foreach f: libc_feature_defines config_h.set(f[0], f[1]) endforeach |