diff --git a/gio/meson.build b/gio/meson.build index ddfd18f3f..b6ef13883 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -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 ' -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 #include int qclass = C_IN;''',