From ea0c4bf0459a5571c709d2e052b2791ef26be07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Tue, 29 Dec 2020 18:47:34 +0100 Subject: build: Fix inconsistent Android host system checks To match the value in the Meson reference table for "Operating system names", and our checks elsewhere. --- gio/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gio') diff --git a/gio/meson.build b/gio/meson.build index 8030f60a5..e0a190cd6 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -12,7 +12,7 @@ gnetworking_h_conf = configuration_data() gnetworking_h_nameser_compat_include = '' -if host_system != 'windows' and not host_system.contains('android') +if host_system not in ['windows', '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 @@ -148,7 +148,7 @@ if host_system != 'windows' endif -if host_system.contains('android') +if host_system == 'android' # struct ip_mreq_source definition is broken on Android NDK <= r16 # See https://bugzilla.gnome.org/show_bug.cgi?id=740791 if not cc.compiles('''#include -- cgit v1.2.1