mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
meson.build: make the android-check reflect the autotools one
In autotools this same check reads: AS_IF([test $glib_native_android != yes] with glib_native_android being defined as: case $host in *android*) glib_native_android="yes" ;; *) glib_native_android="no" ;; esac This is needed to be able to compile on OSX. https://bugzilla.gnome.org/show_bug.cgi?id=791460 Signed-off-by: Nirbheek Chauhan <nirbheek@centricular.com>
This commit is contained in:
parent
17bfc39ea7
commit
5f83cd3add
@ -18,10 +18,9 @@ if host_system == 'windows'
|
||||
# inline workarounds for getaddrinfo, getnameinfo and freeaddrinfo if
|
||||
# they aren't present at run-time (on Windows 2000).
|
||||
gnetworking_h_wspiapi_include = '#include <wspiapi.h>'
|
||||
endif
|
||||
|
||||
if host_system.contains('android')
|
||||
# Android does not have C_IN in public headers, we define it wherever necessary
|
||||
elif not host_system.contains('android')
|
||||
# Don't check for C_IN on Android since it does not define it in public
|
||||
# headers, we define it ourselves wherever necessary
|
||||
if not cc.compiles('''#include <sys/types.h>
|
||||
#include <arpa/nameser.h>
|
||||
int qclass = C_IN;''',
|
||||
|
Loading…
Reference in New Issue
Block a user