summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2020-12-29 18:47:34 +0100
committerOle André Vadla Ravnås <oleavr@gmail.com>2021-01-06 01:12:31 +0100
commitea0c4bf0459a5571c709d2e052b2791ef26be07e (patch)
treef5da5fbfdf04f2e0ec97afe78eced9d6a17d5c0f /gio
parent7b7f987a36912862f7ecbeb937fee966fb9ef736 (diff)
downloadglib-ea0c4bf0459a5571c709d2e052b2791ef26be07e.tar.gz
build: Fix inconsistent Android host system checks
To match the value in the Meson reference table for "Operating system names", and our checks elsewhere.
Diffstat (limited to 'gio')
-rw-r--r--gio/meson.build4
1 files changed, 2 insertions, 2 deletions
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 <sys/types.h>
@@ -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 <netinet/in.h>