summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-11-27 21:52:52 -0600
committerMike Christie <michaelc@cs.wisc.edu>2008-11-27 21:52:52 -0600
commit9bafdb8b89e2c479b1232da8027ff6b46aa6f930 (patch)
treeecb0862e12ab42bf34aabc02c176a1299f8a4bed /include
parentafbf80743c4ea35114ea1b76116e23a7e73e2a9f (diff)
downloadopen-iscsi-9bafdb8b89e2c479b1232da8027ff6b46aa6f930.tar.gz
iscsi modules: fix compilation
I added a stdint include so that it would be easier to compile userspace apps including iscsi_proto.h, but that breaks the kernel compilation. Since this iscsi_proto.h is only used in open-iscsi releases I am just adding a ifdef __KERNEL__.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iscsi_proto.h b/include/iscsi_proto.h
index 0225ef3..d1e0589 100644
--- a/include/iscsi_proto.h
+++ b/include/iscsi_proto.h
@@ -21,7 +21,9 @@
#ifndef ISCSI_PROTO_H
#define ISCSI_PROTO_H
+#ifndef __KERNEL__
#include <stdint.h>
+#endif
#include <linux/types.h>
#define ISCSI_DRAFT20_VERSION 0x00