Whamcloud - gitweb
Branch b1_4
authoradilger <adilger>
Mon, 4 Jul 2005 07:52:40 +0000 (07:52 +0000)
committeradilger <adilger>
Mon, 4 Jul 2005 07:52:40 +0000 (07:52 +0000)
Add types.h file for non-linux builds.

lustre/include/lustre/types.h [new file with mode: 0644]

diff --git a/lustre/include/lustre/types.h b/lustre/include/lustre/types.h
new file mode 100644 (file)
index 0000000..5389d37
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _LUSTRE_TYPES_H
+#define _LUSTRE_TYPES_H
+
+typedef unsigned short umode_t;
+
+#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
+       !defined(_EXT2_TYPES_H) && !defined(_I386_TYPES_H))
+
+/*
+ * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
+ * header files exported to user space
+ */
+
+typedef __signed__ char __s8;
+typedef unsigned char __u8;
+
+typedef __signed__ short __s16;
+typedef unsigned short __u16;
+
+typedef __signed__ int __s32;
+typedef unsigned int __u32;
+
+typedef __signed__ long long __s64;
+typedef unsigned long long __u64;
+#endif
+
+#endif