mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: simplify check for virnetdevbridge.c headers
The headers required by virnetdevbridge.c have all exited since before Linux moved to git. It is sufficient to check for just one of them in order to give an error message about needing kernel headers installed. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
d1c517d965
commit
2b23e72599
16
meson.build
16
meson.build
@ -628,19 +628,11 @@ foreach name : headers
|
||||
endif
|
||||
endforeach
|
||||
|
||||
# check for kernel headers required by src/util/virnetdevbridge.c
|
||||
# check for kernel header required by src/util/virnetdevbridge.c
|
||||
if host_machine.system() == 'linux'
|
||||
required_headers = [
|
||||
'linux/param.h',
|
||||
'linux/sockios.h',
|
||||
'linux/if_bridge.h',
|
||||
'linux/if_tun.h',
|
||||
]
|
||||
foreach name : required_headers
|
||||
if not cc.has_header(name)
|
||||
error('You must install kernel-headers in order to compile libvirt with QEMU or LXC support')
|
||||
endif
|
||||
endforeach
|
||||
if not cc.has_header('linux/sockios.h')
|
||||
error('You must install kernel-headers in order to compile libvirt with QEMU or LXC support')
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user