generic 2.6.24 support
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.24 / 903-stddef_include.patch
1 Index: linux-2.6.23-rc6/include/linux/stddef.h
2 ===================================================================
3 --- linux-2.6.23-rc6.orig/include/linux/stddef.h        2007-09-21 16:23:51.000000000 +0800
4 +++ linux-2.6.23-rc6/include/linux/stddef.h     2007-09-21 16:24:10.000000000 +0800
5 @@ -16,6 +16,7 @@
6         false   = 0,
7         true    = 1
8  };
9 +#endif /* __KERNEL__ */
10  
11  #undef offsetof
12  #ifdef __compiler_offsetof
13 @@ -23,6 +24,5 @@
14  #else
15  #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
16  #endif
17 -#endif /* __KERNEL__ */
18  
19  #endif