diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2012-03-11 20:18:54 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-05-15 11:32:48 -0700 |
commit | e9e4e24d201000a8a307109c7d0ae6608c00f7c4 (patch) | |
tree | c9980cd3057c96a42eda64927adac0c74a0b3da1 | |
parent | f1905af7672c298d1694aa878d1a0485f81d59b7 (diff) | |
download | klibc-e9e4e24d201000a8a307109c7d0ae6608c00f7c4.tar.gz |
[klibc] Align <sys/types.h> with the kernel headers
Align __le64 (and other) type definitions with the kernel
linux-libc-dev headers.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | usr/include/sys/types.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/usr/include/sys/types.h b/usr/include/sys/types.h index 3a4c738a897c2..4ad9930315466 100644 --- a/usr/include/sys/types.h +++ b/usr/include/sys/types.h @@ -89,16 +89,17 @@ typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; -typedef uint16_t __bitwise __le16; -typedef uint16_t __bitwise __be16; -typedef uint32_t __bitwise __le32; -typedef uint32_t __bitwise __be32; -typedef uint64_t __bitwise __le64; -typedef uint64_t __bitwise __be64; - -typedef uint16_t __sum16; -typedef uint32_t __sum32; -typedef uint64_t __sum64; +typedef __u16 __bitwise __le16; +typedef __u16 __bitwise __be16; +typedef __u32 __bitwise __le32; +typedef __u32 __bitwise __be32; +typedef __u64 __bitwise __le64; +typedef __u64 __bitwise __be64; + +typedef __u16 __bitwise __sum16; +typedef __u32 __bitwise __sum32; +typedef __u64 __bitwise __sum64; +typedef __u32 __bitwise __wsum; #define __aligned_u64 __u64 __attribute__((aligned(8))) #define __aligned_be64 __be64 __attribute__((aligned(8))) |