diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-01-17 22:00:35 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2011-01-20 23:31:14 +0100 |
commit | 3edaa2019bb15a3c2622e8bf910276965a5e60cd (patch) | |
tree | 6e74b0a3d1f1d1515c234d1d20eae40754695a17 /include | |
parent | 960f668f17ae6bb9bd5edea1b9fe05ad4d5c2850 (diff) | |
download | util-linux-old-3edaa2019bb15a3c2622e8bf910276965a5e60cd.tar.gz |
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 <grobian@gentoo.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/blkdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sys/types.h> #include <sys/ioctl.h> +#ifdef HAVE_SYS_IOCCOM_H +# include <sys/ioccom.h> /* for _IO macro on e.g. Solaris */ +#endif #include <fcntl.h> #include <unistd.h> |