uClibc: refresh patches for uClibc
[openwrt/staging/florian.git] / toolchain / uClibc / patches / 180-fix_kernel_types_with_recent_kernel.patch
1 This patch is out of uClibc trunk.
2
3 --- a/libc/sysdeps/linux/i386/bits/kernel_types.h
4 +++ b/libc/sysdeps/linux/i386/bits/kernel_types.h
5 @@ -7,10 +7,14 @@
6
7 /* a hack for compiling a 32 bit user space with 64 bit
8 * kernel on x86_64 */
9 -#if !defined(__ARCH_I386_POSIX_TYPES_H) && !defined(_ASM_X86_64_POSIX_TYPES_H)
10 +#if !defined(__ARCH_I386_POSIX_TYPES_H) && \
11 + !defined(_ASM_X86_64_POSIX_TYPES_H) && \
12 + !defined(_ASM_X86_POSIX_TYPES_32_H) && \
13 + !defined(_ASM_X86_POSIX_TYPES_64_H)
14 #define _ASM_X86_64_POSIX_TYPES_H
15 #define __ARCH_I386_POSIX_TYPES_H
16 -
17 +#define _ASM_X86_POSIX_TYPES_32_H
18 +#define _ASM_X86_POSIX_TYPES_64_H
19 typedef unsigned short __kernel_dev_t;
20 typedef unsigned long __kernel_ino_t;
21 typedef unsigned short __kernel_mode_t;