X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost_scsi%2Fmeson.build;h=2e9339aa73c78f09c0dcb078b90cd0485cbb7f8a;hb=37afe381bde4277f0078116b8d4d7a315c8e39b3;hp=bd78e84b3cee47477914197565f1897424f75de9;hpb=6c9457c27954f16d99f3798711eb253fbaf05fa3;p=dpdk.git diff --git a/examples/vhost_scsi/meson.build b/examples/vhost_scsi/meson.build index bd78e84b3c..2e9339aa73 100644 --- a/examples/vhost_scsi/meson.build +++ b/examples/vhost_scsi/meson.build @@ -6,8 +6,16 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +if not is_linux + build = false +endif + +if not cc.has_header('virtio_scsi.h') + build = false +endif + deps += 'vhost' -cflags += ['-D_GNU_SOURCE','-D_FILE_OFFSET_BITS=64'] +cflags += ['-D_FILE_OFFSET_BITS=64'] sources = files( 'scsi.c', 'vhost_scsi.c' )