X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost_scsi%2Fmeson.build;h=77e5201bd71639398793de1f47bb785bfd2b3144;hb=5924381221b022b589bef88bacea8a59a7bf6c8b;hp=2303bcaed7cc52f7c4da4d72fe97948aed41c71e;hpb=5d7b673d5fd6663b20c675dd382d9fb43b42af18;p=dpdk.git diff --git a/examples/vhost_scsi/meson.build b/examples/vhost_scsi/meson.build index 2303bcaed7..77e5201bd7 100644 --- a/examples/vhost_scsi/meson.build +++ b/examples/vhost_scsi/meson.build @@ -6,11 +6,15 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' -if host_machine.system() != 'linux' +if not is_linux build = false endif + +if not cc.has_header('linux/virtio_scsi.h') + build = false +endif + deps += 'vhost' -cflags += ['-D_FILE_OFFSET_BITS=64'] sources = files( 'scsi.c', 'vhost_scsi.c' )