From 4a30f729f26072867ac3dac14c688b4e0b222804 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 19 Aug 2018 18:41:14 +0530 Subject: [PATCH] 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 --- test cases/common/195 check header/meson.build | 4 ++-- 1 file 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 ') + assert(comp.check_header('linux/socket.h', prefix : fallback), + 'Could not find ') if comp.has_header('intrin.h', prefix : fallback) assert(not comp.check_header('intrin.h'), 'intrin.h should not be usable on linux')