mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: don't check for libutil.h except on FreeBSD
The libutil.h we are after is explicitly only something we want on FreeBSD, we don't want to accidentally pick up this header on other platforms as it can lead to build failures. Reviewed-by: Neal Gompa <ngompa13@gmail.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
709c0e7616
commit
eee134984c
@ -685,7 +685,6 @@ headers = [
|
|||||||
'asm/hwcap.h',
|
'asm/hwcap.h',
|
||||||
'ifaddrs.h',
|
'ifaddrs.h',
|
||||||
'libtasn1.h',
|
'libtasn1.h',
|
||||||
'libutil.h',
|
|
||||||
'linux/kvm.h',
|
'linux/kvm.h',
|
||||||
'linux/magic.h',
|
'linux/magic.h',
|
||||||
'mntent.h',
|
'mntent.h',
|
||||||
@ -711,6 +710,10 @@ if host_machine.system() == 'linux'
|
|||||||
headers += 'linux/devlink.h'
|
headers += 'linux/devlink.h'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if host_machine.system() == 'freebsd'
|
||||||
|
headers += 'libutil.h'
|
||||||
|
endif
|
||||||
|
|
||||||
foreach name : headers
|
foreach name : headers
|
||||||
if cc.has_header(name)
|
if cc.has_header(name)
|
||||||
conf.set('WITH_@0@'.format(name.underscorify().to_upper()), 1)
|
conf.set('WITH_@0@'.format(name.underscorify().to_upper()), 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user