Fri Feb 7 17:05:14 2020 UTC ()
Apply upstream's

  Check size_t compatibility with various other types
  commit 505c9544247f27cb6ebf749d0902d53c33dac308

which will hopefully fix PR pkg/54909 and not break PR pkg/54298


(prlw1)
diff -r1.266 -r1.267 pkgsrc/devel/glib2/Makefile
diff -r1.266 -r1.267 pkgsrc/devel/glib2/distinfo
diff -r1.1 -r0 pkgsrc/devel/glib2/patches/patch-glib_glibconfig.h.in
diff -r1.4 -r0 pkgsrc/devel/glib2/patches/patch-glib_gtypes.h
diff -r1.8 -r1.9 pkgsrc/devel/glib2/patches/patch-meson.build

cvs diff -r1.266 -r1.267 pkgsrc/devel/glib2/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/glib2/Makefile 2019/12/29 19:40:56 1.266
+++ pkgsrc/devel/glib2/Makefile 2020/02/07 17:05:14 1.267
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile,v 1.266 2019/12/29 19:40:56 triaxx Exp $ 1# $NetBSD: Makefile,v 1.267 2020/02/07 17:05:14 prlw1 Exp $
2 2
3.include "Makefile.common" 3.include "Makefile.common"
4 4
 5PKGREVISION= 1
5CATEGORIES= devel gnome 6CATEGORIES= devel gnome
6COMMENT= Some useful routines for C programming (glib2) 7COMMENT= Some useful routines for C programming (glib2)
7 8
8.include "options.mk" 9.include "options.mk"
9 10
10MESON_ARGS+= -Dinstalled_tests=false 11MESON_ARGS+= -Dinstalled_tests=false
11# Avoid linux dependency on libmount-dev 12# Avoid linux dependency on libmount-dev
12MESON_ARGS+= -Dlibmount=false 13MESON_ARGS+= -Dlibmount=false
13 14
14MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/gio:${WRKSRC}/output/glib:${WRKSRC}/output/gobject:${WRKSRC}/output/gmodule 15MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/gio:${WRKSRC}/output/glib:${WRKSRC}/output/gobject:${WRKSRC}/output/gmodule
15 16
16CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ 17CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
17LDFLAGS.SunOS+= -liconv -lintl -lnsl -lsocket 18LDFLAGS.SunOS+= -liconv -lintl -lnsl -lsocket

cvs diff -r1.266 -r1.267 pkgsrc/devel/glib2/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/glib2/distinfo 2020/01/23 23:54:22 1.266
+++ pkgsrc/devel/glib2/distinfo 2020/02/07 17:05:14 1.267
@@ -1,37 +1,35 @@ @@ -1,37 +1,35 @@
1$NetBSD: distinfo,v 1.266 2020/01/23 23:54:22 sevan Exp $ 1$NetBSD: distinfo,v 1.267 2020/02/07 17:05:14 prlw1 Exp $
2 2
3SHA1 (glib-2.62.4.tar.xz) = f9a493c86f98482f13c6ed742c19487e6fa8f34b 3SHA1 (glib-2.62.4.tar.xz) = f9a493c86f98482f13c6ed742c19487e6fa8f34b
4RMD160 (glib-2.62.4.tar.xz) = 4cac1bc54a690b007c859db2e9d65c33dc97395c 4RMD160 (glib-2.62.4.tar.xz) = 4cac1bc54a690b007c859db2e9d65c33dc97395c
5SHA512 (glib-2.62.4.tar.xz) = d54411c664281bb6770f57e58c69ac28d1eb76802cb73e9a2bca94b9d5d62441d80cf78d19d1124dadddcce385d3dff3824c019dc00ed2b10af48a69006766fa 5SHA512 (glib-2.62.4.tar.xz) = d54411c664281bb6770f57e58c69ac28d1eb76802cb73e9a2bca94b9d5d62441d80cf78d19d1124dadddcce385d3dff3824c019dc00ed2b10af48a69006766fa
6Size (glib-2.62.4.tar.xz) = 4684768 bytes 6Size (glib-2.62.4.tar.xz) = 4684768 bytes
7SHA1 (patch-gio_gcredentialsprivate.h) = dab92e07f8357a7dc1a569e37f65f9b199aee281 7SHA1 (patch-gio_gcredentialsprivate.h) = dab92e07f8357a7dc1a569e37f65f9b199aee281
8SHA1 (patch-gio_gdbus-2.0_codegen_meson.build) = ec8ce89da08059ebf953d84a1dca5a2b380349f4 8SHA1 (patch-gio_gdbus-2.0_codegen_meson.build) = ec8ce89da08059ebf953d84a1dca5a2b380349f4
9SHA1 (patch-gio_giomodule.c) = d704699b2f457a08fff9219fe697e5fd2cc582ed 9SHA1 (patch-gio_giomodule.c) = d704699b2f457a08fff9219fe697e5fd2cc582ed
10SHA1 (patch-gio_gresource-tool.c) = ad0e59f48f5f98ea66be568dbe2e5a5d1ac602fc 10SHA1 (patch-gio_gresource-tool.c) = ad0e59f48f5f98ea66be568dbe2e5a5d1ac602fc
11SHA1 (patch-gio_gunixcredentialsmessage.c) = c13119ddd6262db7c03e53857e987f0c495d3312 11SHA1 (patch-gio_gunixcredentialsmessage.c) = c13119ddd6262db7c03e53857e987f0c495d3312
12SHA1 (patch-gio_gunixmounts.c) = 13af07fffe898457edd0d8db4296a60fccba913d 12SHA1 (patch-gio_gunixmounts.c) = 13af07fffe898457edd0d8db4296a60fccba913d
13SHA1 (patch-gio_inotify_inotify-kernel.c) = 78544b4c32ef3b44e8721b1c07407f46a9e8c8a4 13SHA1 (patch-gio_inotify_inotify-kernel.c) = 78544b4c32ef3b44e8721b1c07407f46a9e8c8a4
14SHA1 (patch-gio_meson.build) = c2bda4943f8580706ec45760604ed1bdf63d1c6f 14SHA1 (patch-gio_meson.build) = c2bda4943f8580706ec45760604ed1bdf63d1c6f
15SHA1 (patch-gio_tests_gdbus-export.c) = 59d85ca079d02b52e33153c7d2ac1cc48c26707a 15SHA1 (patch-gio_tests_gdbus-export.c) = 59d85ca079d02b52e33153c7d2ac1cc48c26707a
16SHA1 (patch-gio_tests_meson.build) = aadb773caa5f120f47a4182ae364e9d257839e6c 16SHA1 (patch-gio_tests_meson.build) = aadb773caa5f120f47a4182ae364e9d257839e6c
17SHA1 (patch-glib_gatomic.c) = 875ad9c828dcf2add356d4988d14fb4f1985aef8 17SHA1 (patch-glib_gatomic.c) = 875ad9c828dcf2add356d4988d14fb4f1985aef8
18SHA1 (patch-glib_gatomic.h) = 21294cac483c3379198283c54fe6e24af3e630b1 18SHA1 (patch-glib_gatomic.h) = 21294cac483c3379198283c54fe6e24af3e630b1
19SHA1 (patch-glib_genviron.c) = 7182f5ef2ebc7f17d8d4fb892e946c52c8c0ad1d 19SHA1 (patch-glib_genviron.c) = 7182f5ef2ebc7f17d8d4fb892e946c52c8c0ad1d
20SHA1 (patch-glib_glibconfig.h.in) = 1964b5fb15317e681dad426d4862e3f48c4274f7 
21SHA1 (patch-glib_gmacros.h) = b2737b6b089556ca9bb54176a41371042e329b9c 20SHA1 (patch-glib_gmacros.h) = b2737b6b089556ca9bb54176a41371042e329b9c
22SHA1 (patch-glib_gmain.c) = 4c834b3cb35b1e64b77dfe15f4b3aa01d4d5daa1 21SHA1 (patch-glib_gmain.c) = 4c834b3cb35b1e64b77dfe15f4b3aa01d4d5daa1
23SHA1 (patch-glib_gspawn.c) = 17a6f1b38660123eafd6fb66966eb240dee26db7 22SHA1 (patch-glib_gspawn.c) = 17a6f1b38660123eafd6fb66966eb240dee26db7
24SHA1 (patch-glib_gtypes.h) = ad193e4a991a9df84b0c38f5464d58d8025ee44c 
25SHA1 (patch-glib_meson.build) = cafd7c607407208408be46c44ce2f238a2b56fd2 23SHA1 (patch-glib_meson.build) = cafd7c607407208408be46c44ce2f238a2b56fd2
26SHA1 (patch-glib_tests_hash.c) = bb1535fbd3910d45aa2f70bd6e188692e8d02358 24SHA1 (patch-glib_tests_hash.c) = bb1535fbd3910d45aa2f70bd6e188692e8d02358
27SHA1 (patch-glib_tests_include.c) = 12d98caebfb87c1146821d518c37c45f97fc7be0 25SHA1 (patch-glib_tests_include.c) = 12d98caebfb87c1146821d518c37c45f97fc7be0
28SHA1 (patch-glib_tests_meson.build) = d012ede92bd3202bde4e8fab9cf4c0ee9ca8d3d4 26SHA1 (patch-glib_tests_meson.build) = d012ede92bd3202bde4e8fab9cf4c0ee9ca8d3d4
29SHA1 (patch-gmodule_gmodule-ar.c) = e382a0ada232e083d51cbede7f689a50ebeff4d8 27SHA1 (patch-gmodule_gmodule-ar.c) = e382a0ada232e083d51cbede7f689a50ebeff4d8
30SHA1 (patch-gmodule_gmodule-dl.c) = b678a04debbc79ebb67d91db7716990658e76da4 28SHA1 (patch-gmodule_gmodule-dl.c) = b678a04debbc79ebb67d91db7716990658e76da4
31SHA1 (patch-gmodule_gmodule-dyld.c) = 5adf62970d9cff22d451307aaa0b00d975dab138 29SHA1 (patch-gmodule_gmodule-dyld.c) = 5adf62970d9cff22d451307aaa0b00d975dab138
32SHA1 (patch-gmodule_gmodule-win32.c) = 477a861f8590a62c3dbc0aa4ad728cc86ebb34dd 30SHA1 (patch-gmodule_gmodule-win32.c) = 477a861f8590a62c3dbc0aa4ad728cc86ebb34dd
33SHA1 (patch-gmodule_gmodule.c) = 55c5f9d16e3517f3fdc04d40922f50d9c66b0b9a 31SHA1 (patch-gmodule_gmodule.c) = 55c5f9d16e3517f3fdc04d40922f50d9c66b0b9a
34SHA1 (patch-gobject_glib-mkenums.in) = c177cf9b1ea81542665240678f47f68351a3760d 32SHA1 (patch-gobject_glib-mkenums.in) = c177cf9b1ea81542665240678f47f68351a3760d
35SHA1 (patch-gobject_meson.build) = 412b65558aa4cf9648ee84a57ad6dfcc988b1a1d 33SHA1 (patch-gobject_meson.build) = 412b65558aa4cf9648ee84a57ad6dfcc988b1a1d
36SHA1 (patch-meson.build) = 40b8da0debfefd3643d339ea171b76921dd03403 34SHA1 (patch-meson.build) = 3265900b1e44f139ddbf0e4cbbe61328f9c8bd34
37SHA1 (patch-meson_options.txt) = 7f633fbbfa9d9b2d958365891ffb9e4094d7dd54 35SHA1 (patch-meson_options.txt) = 7f633fbbfa9d9b2d958365891ffb9e4094d7dd54

File Deleted: pkgsrc/devel/glib2/patches/Attic/patch-glib_glibconfig.h.in

File Deleted: pkgsrc/devel/glib2/patches/Attic/patch-glib_gtypes.h

cvs diff -r1.8 -r1.9 pkgsrc/devel/glib2/patches/patch-meson.build (expand / switch to unified diff)

--- pkgsrc/devel/glib2/patches/patch-meson.build 2019/11/28 18:11:48 1.8
+++ pkgsrc/devel/glib2/patches/patch-meson.build 2020/02/07 17:05:14 1.9
@@ -1,94 +1,190 @@ @@ -1,94 +1,190 @@
1$NetBSD: patch-meson.build,v 1.8 2019/11/28 18:11:48 jperkin Exp $ 1$NetBSD: patch-meson.build,v 1.9 2020/02/07 17:05:14 prlw1 Exp $
2 2
3- On Darwin, optionally use Cocoa (needed for X11 users). 3- On Darwin, optionally use Cocoa (needed for X11 users).
4 4
5- Don't insist that Python binary is called "python3". 5- Don't insist that Python binary is called "python3".
6 (Requires meson >= 0.50.0) 6 (Requires meson >= 0.50.0)
7 7
8- Don't install bash completion scripts. 8- Don't install bash completion scripts.
9 9
10- Tolerate getxattr not existing (smartOS) 10- Tolerate getxattr not existing (smartOS)
11 https://gitlab.gnome.org/GNOME/glib/merge_requests/888 11 https://gitlab.gnome.org/GNOME/glib/merge_requests/888
12 12
13- Define a newer POSIX, as we build this package with -std=gnu99 13- Define a newer POSIX, as we build this package with -std=gnu99
14 14
15--- meson.build.orig 2019-11-19 17:51:31.000000000 +0000 15- Check size_t compatibility with various other types
 16 commit 505c9544247f27cb6ebf749d0902d53c33dac308
 17 glib bug #1777
 18 c.f., PR pkg/54909 and PR pkg/54298
 19
 20--- meson.build.orig 2020-02-07 11:23:09.221446856 +0000
16+++ meson.build 21+++ meson.build
17@@ -5,7 +5,6 @@ project('glib', 'c', 'cpp', 22@@ -5,7 +5,6 @@ project('glib', 'c', 'cpp',
18 default_options : [ 23 default_options : [
19 'buildtype=debugoptimized', 24 'buildtype=debugoptimized',
20 'warning_level=1', 25 'warning_level=1',
21- 'c_std=gnu89' 26- 'c_std=gnu89'
22 ] 27 ]
23 ) 28 )
24  29
25@@ -677,6 +676,7 @@ if host_system == 'darwin' 30@@ -671,6 +670,7 @@ if host_system == 'darwin'
26 #error "Detected GNUstep, not Cocoa" 31 #error "Detected GNUstep, not Cocoa"
27 #endif''', 32 #endif''',
28 name : 'Mac OS X Cocoa support') 33 name : 'Mac OS X Cocoa support')
29+ glib_have_cocoa = glib_have_cocoa and get_option('use_cocoa') 34+ glib_have_cocoa = glib_have_cocoa and get_option('use_cocoa')
30  35
31 if glib_have_cocoa 36 if glib_have_cocoa
32 glib_conf.set('HAVE_COCOA', true) 37 glib_conf.set('HAVE_COCOA', true)
33@@ -1838,7 +1838,7 @@ endif 38@@ -1314,28 +1314,86 @@ else
 39 glibconfig_conf.set('g_searchpath_separator', ':')
 40 endif
 41
 42-if sizet_size == short_size
 43+g_sizet_compatibility = {
 44+ 'short': sizet_size == short_size,
 45+ 'int': sizet_size == int_size,
 46+ 'long': sizet_size == long_size,
 47+ 'long long': sizet_size == long_long_size,
 48+}
 49+
 50+# Do separate checks for gcc/clang (and ignore other compilers for now), since
 51+# we need to explicitly pass -Werror to the compilers.
 52+# FIXME: https://github.com/mesonbuild/meson/issues/5399
 53+# We can’t simplify these checks using a foreach loop because dictionary keys
 54+# have to be string literals.
 55+# FIXME: https://github.com/mesonbuild/meson/issues/5231
 56+if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
 57+ g_sizet_compatibility += {
 58+ 'short': g_sizet_compatibility['short'] and cc.compiles(
 59+ '''#include <stddef.h>
 60+ size_t f (size_t *i) { return *i + 1; }
 61+ int main (void) {
 62+ unsigned short i = 0;
 63+ f (&i);
 64+ return 0;
 65+ }''',
 66+ args: ['-Werror'],
 67+ name : 'GCC size_t typedef is short'),
 68+ 'int': g_sizet_compatibility['int'] and cc.compiles(
 69+ '''#include <stddef.h>
 70+ size_t f (size_t *i) { return *i + 1; }
 71+ int main (void) {
 72+ unsigned int i = 0;
 73+ f (&i);
 74+ return 0;
 75+ }''',
 76+ args: ['-Werror'],
 77+ name : 'GCC size_t typedef is int'),
 78+ 'long': g_sizet_compatibility['long'] and cc.compiles(
 79+ '''#include <stddef.h>
 80+ size_t f (size_t *i) { return *i + 1; }
 81+ int main (void) {
 82+ unsigned long i = 0;
 83+ f (&i);
 84+ return 0;
 85+ }''',
 86+ args: ['-Werror'],
 87+ name : 'GCC size_t typedef is long'),
 88+ 'long long': g_sizet_compatibility['long long'] and cc.compiles(
 89+ '''#include <stddef.h>
 90+ size_t f (size_t *i) { return *i + 1; }
 91+ int main (void) {
 92+ unsigned long long i = 0;
 93+ f (&i);
 94+ return 0;
 95+ }''',
 96+ args: ['-Werror'],
 97+ name : 'GCC size_t typedef is long long'),
 98+ }
 99+endif
 100+
 101+if g_sizet_compatibility['short']
 102 glibconfig_conf.set('glib_size_type_define', 'short')
 103 glibconfig_conf.set_quoted('gsize_modifier', 'h')
 104 glibconfig_conf.set_quoted('gssize_modifier', 'h')
 105 glibconfig_conf.set_quoted('gsize_format', 'hu')
 106 glibconfig_conf.set_quoted('gssize_format', 'hi')
 107 glibconfig_conf.set('glib_msize_type', 'SHRT')
 108-elif sizet_size == int_size
 109+elif g_sizet_compatibility['int']
 110 glibconfig_conf.set('glib_size_type_define', 'int')
 111 glibconfig_conf.set_quoted('gsize_modifier', '')
 112 glibconfig_conf.set_quoted('gssize_modifier', '')
 113 glibconfig_conf.set_quoted('gsize_format', 'u')
 114 glibconfig_conf.set_quoted('gssize_format', 'i')
 115 glibconfig_conf.set('glib_msize_type', 'INT')
 116-elif sizet_size == long_size
 117+elif g_sizet_compatibility['long']
 118 glibconfig_conf.set('glib_size_type_define', 'long')
 119 glibconfig_conf.set_quoted('gsize_modifier', 'l')
 120 glibconfig_conf.set_quoted('gssize_modifier', 'l')
 121 glibconfig_conf.set_quoted('gsize_format', 'lu')
 122 glibconfig_conf.set_quoted('gssize_format', 'li')
 123 glibconfig_conf.set('glib_msize_type', 'LONG')
 124-elif sizet_size == long_long_size
 125+elif g_sizet_compatibility['long long']
 126 glibconfig_conf.set('glib_size_type_define', 'long long')
 127 glibconfig_conf.set_quoted('gsize_modifier', int64_m)
 128 glibconfig_conf.set_quoted('gssize_modifier', int64_m)
 129@@ -1832,7 +1890,7 @@ endif
34 # proxy-libintl subproject. 130 # proxy-libintl subproject.
35 # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible 131 # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
36 # implementations. This could be extended if issues are found in some platforms. 132 # implementations. This could be extended if issues are found in some platforms.
37-if cc.has_function('ngettext') 133-if cc.has_function('ngettext')
38+if cc.has_function('ngettext') and host_system != 'sunos' 134+if cc.has_function('ngettext') and host_system != 'sunos'
39 libintl = [] 135 libintl = []
40 have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset') 136 have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
41 else 137 else
42@@ -1889,16 +1889,15 @@ if host_system != 'windows' and get_opti 138@@ -1883,16 +1941,15 @@ if host_system != 'windows' and get_opti
43 if cc.has_function('getxattr') and cc.has_header('sys/xattr.h') 139 if cc.has_function('getxattr') and cc.has_header('sys/xattr.h')
44 glib_conf.set('HAVE_SYS_XATTR_H', 1) 140 glib_conf.set('HAVE_SYS_XATTR_H', 1)
45 glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_SYS_XATTR_H') 141 glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_SYS_XATTR_H')
46+ glib_conf.set('HAVE_XATTR', 1) 142+ glib_conf.set('HAVE_XATTR', 1)
47 #failure. try libattr 143 #failure. try libattr
48 elif cc.has_header_symbol('attr/xattr.h', 'getxattr') 144 elif cc.has_header_symbol('attr/xattr.h', 'getxattr')
49 glib_conf.set('HAVE_ATTR_XATTR_H', 1) 145 glib_conf.set('HAVE_ATTR_XATTR_H', 1)
50 glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_ATTR_XATTR_H') 146 glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_ATTR_XATTR_H')
51 xattr_dep = [cc.find_library('xattr')] 147 xattr_dep = [cc.find_library('xattr')]
52- else 148- else
53- error('No getxattr implementation found in C library or libxattr') 149- error('No getxattr implementation found in C library or libxattr')
54+ glib_conf.set('HAVE_XATTR', 1) 150+ glib_conf.set('HAVE_XATTR', 1)
55 endif 151 endif
56  152
57- glib_conf.set('HAVE_XATTR', 1) 153- glib_conf.set('HAVE_XATTR', 1)
58 if cc.compiles(glib_conf_prefix + ''' 154 if cc.compiles(glib_conf_prefix + '''
59 #include <stdio.h> 155 #include <stdio.h>
60 #ifdef HAVE_SYS_TYPES_H 156 #ifdef HAVE_SYS_TYPES_H
61@@ -1992,9 +1991,11 @@ endif 157@@ -1986,9 +2043,11 @@ endif
62  158
63 glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline) 159 glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline)
64  160
65-python = import('python').find_installation('python3') 161-python = import('python').find_installation('python3')
66-# used for '#!/usr/bin/env <name>' 162-# used for '#!/usr/bin/env <name>'
67-python_name = 'python3' 163-python_name = 'python3'
68+python = import('python').find_installation('python3', required: false) 164+python = import('python').find_installation('python3', required: false)
69+if not python.found() 165+if not python.found()
70+ python = import('python').find_installation() 166+ python = import('python').find_installation()
71+endif 167+endif
72+python_name = python.path() 168+python_name = python.path()
73  169
74 python_version = python.language_version() 170 python_version = python.language_version()
75 python_version_req = '>=3.4' 171 python_version_req = '>=3.4'
76@@ -2003,7 +2004,7 @@ if not python_version.version_compare(py 172@@ -1997,7 +2056,7 @@ if not python_version.version_compare(py
77 endif 173 endif
78  174
79 # Determine which user environment-dependent files that we want to install 175 # Determine which user environment-dependent files that we want to install
80-have_bash = find_program('bash', required : false).found() # For completion scripts 176-have_bash = find_program('bash', required : false).found() # For completion scripts
81+have_bash = false # For completion scripts 177+have_bash = false # For completion scripts
82 have_sh = find_program('sh', required : false).found() # For glib-gettextize 178 have_sh = find_program('sh', required : false).found() # For glib-gettextize
83  179
84 # Some installed tests require a custom environment 180 # Some installed tests require a custom environment
85@@ -2011,8 +2012,7 @@ env_program = find_program('env', requir 181@@ -2005,8 +2064,7 @@ env_program = find_program('env', requir
86  182
87 # FIXME: How to detect Solaris? https://github.com/mesonbuild/meson/issues/1578 183 # FIXME: How to detect Solaris? https://github.com/mesonbuild/meson/issues/1578
88 if host_system == 'sunos' 184 if host_system == 'sunos'
89- glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1) 185- glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1)
90- glib_conf.set('_XOPEN_SOURCE', 2) 186- glib_conf.set('_XOPEN_SOURCE', 2)
91+ glib_conf.set('_POSIX_C_SOURCE',200809) 187+ glib_conf.set('_POSIX_C_SOURCE',200809)
92 glib_conf.set('__EXTENSIONS__',1) 188 glib_conf.set('__EXTENSIONS__',1)
93 endif 189 endif
94  190