aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-19 18:41:14 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-08-19 07:45:10 -0700
commit4a30f729f26072867ac3dac14c688b4e0b222804 (patch)
tree64538743f3f8a49990427b25502770d6825fe5b4
parente8932adb1468d085b45b93779bad1ee01b06adc0 (diff)
downloadmeson-4a30f729f26072867ac3dac14c688b4e0b222804.zip
meson-4a30f729f26072867ac3dac14c688b4e0b222804.tar.gz
meson-4a30f729f26072867ac3dac14c688b4e0b222804.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/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 7b343d7..f2f7fa5 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')