From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Santana Subject: [PATCH v3 1/2] examples/vhost_scsi: Don't build without virtio_scsi.h Date: Fri, 1 Feb 2019 11:48:13 -0500 Message-ID: <20190201164814.11185-2-msantana@redhat.com> References: <20190130221602.13866-1-msantana@redhat.com> <20190201164814.11185-1-msantana@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Aaron Conole , Bruce Richardson , Honnappa Nagarahalli , Thomas Monjalon To: dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 2F9F91B4E9 for ; Fri, 1 Feb 2019 17:48:23 +0100 (CET) In-Reply-To: <20190201164814.11185-1-msantana@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Aaron Conole 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. Acked-by: Bruce Richardson Signed-off-by: Aaron Conole --- v3: Removed an already-defined variable examples/vhost_scsi/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/vhost_scsi/meson.build b/examples/vhost_scsi/meson.build index 2303bcaed..ca1248023 100644 --- a/examples/vhost_scsi/meson.build +++ b/examples/vhost_scsi/meson.build @@ -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( -- 2.20.1