From 3edaa2019bb15a3c2622e8bf910276965a5e60cd Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 17 Jan 2011 22:00:35 +0100 Subject: [PATCH] make _IO macros available on Solaris The _IO macro is defined in sys/ioccom.h on various platforms. However, on Solaris it isn't included by ioctl.h, so include it explicitly if available. Signed-off-by: Fabian Groffen --- configure.ac | 1 + include/blkdev.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index c38cca43..08c5d11c 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ AC_CHECK_HEADERS( sys/disk.h \ sys/disklabel.h \ sys/ioctl.h \ + sys/ioccom.h \ sys/io.h \ sys/time.h \ sys/mkdev.h \ diff --git a/include/blkdev.h b/include/blkdev.h index 86fffcff..b6c46edd 100644 --- a/include/blkdev.h +++ b/include/blkdev.h @@ -3,6 +3,9 @@ #include #include +#ifdef HAVE_SYS_IOCCOM_H +# include /* for _IO macro on e.g. Solaris */ +#endif #include #include -- 2.39.5