summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-19 18:41:14 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-08-19 18:42:10 +0530
commit72060a1e5b4b0dd19c546e2a8025605d6f3fb8f1 (patch)
tree64538743f3f8a49990427b25502770d6825fe5b4
parente8932adb1468d085b45b93779bad1ee01b06adc0 (diff)
downloadmeson-nirbheek/fix-check-header-test.tar.gz
tests/check header: Use linux/socket.h instead of if.h [skip appveyor]nirbheek/fix-check-header-test
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/195 check header/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/195 check header/meson.build b/test cases/common/195 check header/meson.build
index 7b343d7e3..f2f7fa5c0 100644
--- a/test cases/common/195 check header/meson.build
+++ b/test cases/common/195 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')