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