mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
meson: Only look for _NSGetEnviron when building for macOS
On iOS it can cause build failures with some SDK versions, and its usage will also cause the app to be rejected on submission.
This commit is contained in:
parent
3c78d0cec6
commit
a28b52d7db
@ -512,9 +512,14 @@ functions = [
|
||||
'wcslen',
|
||||
'wcsnlen',
|
||||
'sysctlbyname',
|
||||
'_NSGetEnviron',
|
||||
]
|
||||
|
||||
# _NSGetEnviron is available on iOS too, but its usage gets apps rejected from
|
||||
# the app store since it's considered 'private API'
|
||||
if host_system == 'darwin'
|
||||
functions += ['_NSGetEnviron']
|
||||
endif
|
||||
|
||||
if glib_conf.has('HAVE_SYS_STATVFS_H')
|
||||
functions += ['statvfs']
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user