diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-08-05 21:04:10 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-08-05 21:04:10 +0200 |
commit | 2f255b2045fe5571c80fc9ded70af7f144ac839b (patch) | |
tree | a91cc889e7ff54434d5a8bc8de8994597f0188d2 | |
parent | a07cfcde3e595084ebc72c96c41857bf05c4c668 (diff) | |
download | vte-2f255b2045fe5571c80fc9ded70af7f144ac839b.tar.gz |
build: Build fix for netbsd
Define _NETBSD_SOURCE to get all necessary defines exposed, as found
from a patch in netbsd ports.
-rw-r--r-- | meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 58410d14..70455b02 100644 --- a/meson.build +++ b/meson.build @@ -221,12 +221,19 @@ libc_feature_defines = [ ['_XOPEN_SOURCE_EXTENDED', '1'], ] -if host_machine.system() == 'freebsd' +system = host_machine.system() + +if system == 'freebsd' # Defining _POSIX_C_SOURCE above makes freebsd not expose some functionality # that's hidden behind __BSD_VISIBLE. Not defininy any of the above however # makes it expose verything. libc_feature_defines = [] + +elif system == 'netbsd' + libc_feature_defines += [ + '_NETBSD_SOURCE', + ] endif foreach f: libc_feature_defines |