lua: Fixed some cross-platform issues for PPC (and probably other architectures)
[openwrt.git] / target / linux / generic-2.6 / patches / 903-stddef_include.patch
1 Index: linux-2.6.21.7/include/linux/stddef.h
2 ===================================================================
3 --- linux-2.6.21.7.orig/include/linux/stddef.h
4 +++ linux-2.6.21.7/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
This page took 0.03791 seconds and 5 git commands to generate.