| From | Mikko Rapeli <> | Subject | [PATCH 22/45] scsi_netlink.h: include stdint.h in userspace | Date | Tue, 17 Feb 2015 00:05:25 +0100 |
| |
Fixes compilation error:
scsi/scsi_netlink.h:43:2: error: unknown type name ‘uint8_t’
Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi> --- include/uapi/scsi/scsi_netlink.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/uapi/scsi/scsi_netlink.h b/include/uapi/scsi/scsi_netlink.h index 62b4eda..9d14592 100644 --- a/include/uapi/scsi/scsi_netlink.h +++ b/include/uapi/scsi/scsi_netlink.h @@ -22,8 +22,12 @@ #ifndef SCSI_NETLINK_H #define SCSI_NETLINK_H -#include <linux/netlink.h> +#ifdef __KERNEL__ #include <linux/types.h> +#else +#include <stdint.h> +#endif +#include <linux/netlink.h> /* * This file intended to be included by both kernel and user space -- 2.1.4
|