examples/l3fwd: use reserved IP addresses
[dpdk.git] / examples / vhost_scsi / meson.build
index bd78e84..2e9339a 100644 (file)
@@ -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'
 )