From: adilger Date: Mon, 4 Jul 2005 07:52:40 +0000 (+0000) Subject: Branch b1_4 X-Git-Tag: v1_7_140~1^12~3^2~55^5~112 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=70807ab915529e4c1c08f6dc58e4b5adb65a42c5;p=fs%2Flustre-release.git Branch b1_4 Add types.h file for non-linux builds. --- diff --git a/lustre/include/lustre/types.h b/lustre/include/lustre/types.h new file mode 100644 index 0000000..5389d37 --- /dev/null +++ b/lustre/include/lustre/types.h @@ -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