]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: don't check for libutil.h except on FreeBSD
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 25 Sep 2020 09:19:03 +0000 (10:19 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 25 Sep 2020 09:28:22 +0000 (10:28 +0100)
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>
meson.build

index 4d42468a5127b0494aba86f0eefa48086f8cbbc3..bc520798097374c5acc37177a08d3ea4121d4ba0 100644 (file)
@@ -685,7 +685,6 @@ headers = [
   'asm/hwcap.h',
   'ifaddrs.h',
   'libtasn1.h',
-  'libutil.h',
   'linux/kvm.h',
   'linux/magic.h',
   'mntent.h',
@@ -711,6 +710,10 @@ if host_machine.system() == 'linux'
   headers += 'linux/devlink.h'
 endif
 
+if host_machine.system() == 'freebsd'
+  headers += 'libutil.h'
+endif
+
 foreach name : headers
   if cc.has_header(name)
     conf.set('WITH_@0@'.format(name.underscorify().to_upper()), 1)