[glib: 1/2] Meson: Add missing defines on Solaris



commit 6ed57f8e269ad145c6b6dfcc58835082524bee85
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Tue Jun 5 16:30:04 2018 -0400

    Meson: Add missing defines on Solaris
    
    We have no way to test Solaris builds atm, and it is not even clear how
    to detect Solaris systems with meson. It will probably need to be
    revisited when we get a proper CI in place.

 meson.build | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index a89ca55cd..be526768e 100644
--- a/meson.build
+++ b/meson.build
@@ -1781,11 +1781,17 @@ have_sh = find_program('sh', required : false).found() # For glib-gettextize
 # FIXME: defines in config.h that are not actually used anywhere
 # (we add them for now to minimise the diff)
 glib_conf.set('HAVE_DLFCN_H', 1)
-glib_conf.set('__EXTENSIONS__', 1)
 glib_conf.set('STDC_HEADERS', 1)
 # THREADS_NONE
 glib_conf.set('SIZEOF___INT64', 8)
 
+# FIXME: How to detect Solaris? https://github.com/mesonbuild/meson/issues/1578
+if host_system == 'sunos'
+  glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1)
+  glib_conf.set('_XOPEN_SOURCE', 2)
+  glib_conf.set('__EXTENSIONS__',1)
+endif
+
 glib_conf.set('GIO_MODULE_DIR', glib_giomodulesdir)
 
 # Sadly Meson does not expose this value:


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