[vte] build: Also set _XOPEN_SOURCE



commit 8f53192432560e61b6c0de3692de44c245c40e55
Author: Christian Persch <chpe src gnome org>
Date:   Tue Jun 21 22:55:21 2022 +0200

    build: Also set _XOPEN_SOURCE
    
    This is necessary on e.g. freebsd to use grantpt().
    
    https://gitlab.gnome.org/GNOME/vte/-/issues/2564

 meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 5738b262..33e3a5fe 100644
--- a/meson.build
+++ b/meson.build
@@ -201,10 +201,12 @@ if get_option('gtk4')
   gtk4_version_cppflags += '-DGDK_VERSION_MAX_ALLOWED=(G_ENCODE_VERSION(' + ver[0] + ',' + ver[1] + '))'
 endif
 
+# Enable libc features
 
-# FIXME AC_USE_SYSTEM_EXTENSIONS also supported non-gnu systems
 config_h.set10('_GNU_SOURCE', true)
 config_h.set('_POSIX_C_SOURCE', '200809L')
+config_h.set('_XOPEN_SOURCE', '700')
+config_h.set10('_XOPEN_SOURCE_EXTENDED', true)
 
 # Check headers
 
@@ -388,6 +390,8 @@ foreach func: check_functions
     args: [
       '-D_GNU_SOURCE',
       '-D_POSIX_C_SOURCE=200809L',
+      '-D_XOPEN_SOURCE=700',
+      '-D_XOPEN_SOURCE_EXTENDED',
     ],
     dependencies: __deps,
     name: __name,


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