fix uclibc compile
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches / 900-headers_type_and_time.patch
index 09118bc0e0018f47583a4fc53021cfbe398af8a8..56a5ef32306a7a19b6118b08520da23517f8c16d 100644 (file)
@@ -23,7 +23,7 @@ Update 2005-05-05 gotom, add __extension__ for linux/types.h.
  #endif
 --- linux.old/include/linux/types.h    2006-06-05 13:18:23.000000000 -0400
 +++ linux.dev/include/linux/types.h    2006-06-10 00:16:51.962628154 -0400
-@@ -1,6 +1,16 @@
+@@ -1,6 +1,14 @@
  #ifndef _LINUX_TYPES_H
  #define _LINUX_TYPES_H
  
@@ -33,8 +33,6 @@ Update 2005-05-05 gotom, add __extension__ for linux/types.h.
 +/* For other kernel headers.  */
 +# include <linux/posix_types.h>
 +# include <asm/types.h>
-+/* For util-linux / cryptoloop.  How lame.  */
-+typedef __u32 __kernel_dev_t;
 +#else
 +
  #ifdef        __KERNEL__
@@ -49,16 +47,3 @@ Update 2005-05-05 gotom, add __extension__ for linux/types.h.
  /*
   * Below are truly Linux-specific types that should never collide with
   * any application/library that wants linux/types.h.
-@@ -167,9 +179,9 @@
- typedef __u16 __bitwise __be16;
- typedef __u32 __bitwise __le32;
- typedef __u32 __bitwise __be32;
--#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
--typedef __u64 __bitwise __le64;
--typedef __u64 __bitwise __be64;
-+#if defined(__GNUC__)
-+__extension__ typedef __u64 __bitwise __le64;
-+__extension__ typedef __u64 __bitwise __be64;
- #endif
- #ifdef __KERNEL__