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
pull/4058/head
Nirbheek Chauhan 6 years ago committed by Nirbheek Chauhan
parent e8932adb14
commit 4a30f729f2
  1. 4
      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')

Loading…
Cancel
Save