From ded5d78c1eada3cd07b22259305a9e2ae332839c Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Sat, 14 Nov 2020 11:10:11 +0100 Subject: configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Solaris and Haiku, the _IO() macros are defined in . Add a proper check for this header to our build system, and make sure to include the header in tpm_ioctl.h to fix a build failure on Solaris and Haiku. Message-Id: <20201115152317.42752-1-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- nbd/nbd-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nbd') diff --git a/nbd/nbd-internal.h b/nbd/nbd-internal.h index 60629ef160..1b2141ab4b 100644 --- a/nbd/nbd-internal.h +++ b/nbd/nbd-internal.h @@ -19,7 +19,7 @@ #ifndef _WIN32 #include #endif -#if defined(__sun__) || defined(__HAIKU__) +#ifdef HAVE_SYS_IOCCOM_H #include #endif -- cgit v1.2.3