]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix types.h
authorCarlos Eduardo Medaglia Dyonisio <medaglia@undl.org.br>
Tue, 19 Oct 2004 01:15:39 +0000 (18:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:15:39 +0000 (18:15 -0700)
This patch fixes troubles when compiling some applications that include
<linux/byteorder/little_endian.h>, like xmms.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/types.h

index 13ccdf3036fd19451486329b41142f5eabc88d6f..893c4b367bae74c08ba33098b6fe5768e29d069b 100644 (file)
@@ -140,6 +140,13 @@ typedef unsigned long sector_t;
 #define pgoff_t unsigned long
 #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__
 #define __bitwise __attribute__((bitwise))
 #else
@@ -153,13 +160,6 @@ typedef __u32 __bitwise __be32;
 typedef __u64 __bitwise __le64;
 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 {
        __kernel_daddr_t        f_tfree;
        __kernel_ino_t          f_tinode;