[gnome-terminal/gnome-43] build: Build fix for netbsd



commit ac554ff7793c4295eb4fe8103d2b63cb82c9e87c
Author: Christian Persch <chpe src gnome org>
Date:   Thu Aug 18 18:32:17 2022 +0200

    build: Build fix for netbsd
    
    Define _NETBSD_SOURCE to get all necessary defines exposed, as found
    from a patch in netbsd ports.
    
    (cherry picked from commit 9d35b321b2412f7979404f566643a52cf3791424)

 meson.build | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 0b5e8282..0de2a7f2 100644
--- a/meson.build
+++ b/meson.build
@@ -168,12 +168,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]