examples/vhost_scsi: disable build if missing dependency
The vhost_scsi example code is set to build, even if the requisite header file virtio_scsi.h isn't available. This happens on some Ubuntu systems when some versions of the libc-dev package aren't available. Check whether the virtio_scsi.h file exists, and if not, set the build flag to false. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
3fe9b93c8d
commit
8d47a753b7
@ -9,6 +9,11 @@
|
||||
if host_machine.system() != 'linux'
|
||||
build = false
|
||||
endif
|
||||
|
||||
if not cc.has_header('virtio_scsi.h')
|
||||
build = false
|
||||
endif
|
||||
|
||||
deps += 'vhost'
|
||||
cflags += ['-D_FILE_OFFSET_BITS=64']
|
||||
sources = files(
|
||||
|
Loading…
x
Reference in New Issue
Block a user