Commit 8d8b5f34 authored by Carlos Eduardo Medaglia Dyonisio's avatar Carlos Eduardo Medaglia Dyonisio Committed by Linus Torvalds

[PATCH] Fix types.h

This patch fixes troubles when compiling some applications that include
<linux/byteorder/little_endian.h>, like xmms.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 48e58723
...@@ -140,6 +140,13 @@ typedef unsigned long sector_t; ...@@ -140,6 +140,13 @@ typedef unsigned long sector_t;
#define pgoff_t unsigned long #define pgoff_t unsigned long
#endif #endif
#endif /* __KERNEL_STRICT_NAMES */
/*
* Below are truly Linux-specific types that should never collide with
* any application/library that wants linux/types.h.
*/
#ifdef __CHECKER__ #ifdef __CHECKER__
#define __bitwise __attribute__((bitwise)) #define __bitwise __attribute__((bitwise))
#else #else
...@@ -153,13 +160,6 @@ typedef __u32 __bitwise __be32; ...@@ -153,13 +160,6 @@ typedef __u32 __bitwise __be32;
typedef __u64 __bitwise __le64; typedef __u64 __bitwise __le64;
typedef __u64 __bitwise __be64; typedef __u64 __bitwise __be64;
#endif /* __KERNEL_STRICT_NAMES */
/*
* Below are truly Linux-specific types that should never collide with
* any application/library that wants linux/types.h.
*/
struct ustat { struct ustat {
__kernel_daddr_t f_tfree; __kernel_daddr_t f_tfree;
__kernel_ino_t f_tinode; __kernel_ino_t f_tinode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment