aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-19 18:41:14 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-08-24 03:26:21 +0530
commitab234c24d885f22753e0f9871034a12ebd4d8960 (patch)
treed78813c7b9dff25b20a587af067a7dc1bfcb06ef
parent3237fcd9b23fc2beb43e12c2e2b2b2b98b0e0b48 (diff)
downloadmeson-ab234c24d885f22753e0f9871034a12ebd4d8960.zip
meson-ab234c24d885f22753e0f9871034a12ebd4d8960.tar.gz
meson-ab234c24d885f22753e0f9871034a12ebd4d8960.tar.bz2
tests/check header: Use linux/socket.h instead of if.h [skip appveyor]
linux/if.h can't be included directly because of a bug: https://lore.kernel.org/patchwork/patch/762406/ Closes https://github.com/mesonbuild/meson/issues/4053
-rw-r--r--test cases/common/200 check header/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/200 check header/meson.build b/test cases/common/200 check header/meson.build
index 7b343d7..f2f7fa5 100644
--- a/test cases/common/200 check header/meson.build
+++ b/test cases/common/200 check header/meson.build
@@ -33,8 +33,8 @@ foreach comp : [meson.get_compiler('c'), meson.get_compiler('cpp')]
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80005
# https://github.com/mesonbuild/meson/issues/1458
if host_system == 'linux'
- assert(comp.check_header('linux/if.h', prefix : fallback),
- 'Could not find <linux/if.h>')
+ assert(comp.check_header('linux/socket.h', prefix : fallback),
+ 'Could not find <linux/socket.h>')
if comp.has_header('intrin.h', prefix : fallback)
assert(not comp.check_header('intrin.h'),
'intrin.h should not be usable on linux')