mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
meson: build vstorage only on linux
This should fix CI error: ../dist-unpack/libvirt-7.1.0/src/storage/storage_backend_vstorage.c:10:10: fatal error: 'mntent.h' file not found #include <mntent.h> ^~~~~~~~~~ on freebsd and mac. Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
36b47ffed9
commit
2127d53f2f
11
meson.build
11
meson.build
@ -1957,9 +1957,20 @@ if conf.has('WITH_LIBVIRTD')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if not get_option('storage_vstorage').disabled()
|
if not get_option('storage_vstorage').disabled()
|
||||||
|
vstorage_enable = true
|
||||||
|
if host_machine.system() != 'linux'
|
||||||
|
if get_option('storage_fs').enabled()
|
||||||
|
error('Vstorage is supported only on Linux')
|
||||||
|
else
|
||||||
|
vstorage_enable = false
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
if vstorage_enable
|
||||||
use_storage = true
|
use_storage = true
|
||||||
conf.set('WITH_STORAGE_VSTORAGE', 1)
|
conf.set('WITH_STORAGE_VSTORAGE', 1)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if not get_option('storage_zfs').disabled()
|
if not get_option('storage_zfs').disabled()
|
||||||
zfs_enable = true
|
zfs_enable = true
|
||||||
|
Loading…
Reference in New Issue
Block a user