# HG changeset patch # User Rob Landley # Date 1230452141 21600 # Node ID 82be828e61b5a12ac8b7a2ff86e9ba6a74627a93 # Parent 52248870bdb0b6fb804a10bfb004824c5712d3ac Patch needed to build uClibc 0.9.30 with 2.6.28 kernel headers. diff -r 52248870bdb0 -r 82be828e61b5 sources/patches/uClibc-0.9.30-2.6.28.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/uClibc-0.9.30-2.6.28.patch Sun Dec 28 02:15:41 2008 -0600 @@ -0,0 +1,27 @@ +diff -ruN uClibc/libc/sysdeps/linux/i386/bits/kernel_types.h uClibc2/libc/sysdeps/linux/i386/bits/kernel_types.h +--- uClibc/libc/sysdeps/linux/i386/bits/kernel_types.h 2008-07-23 06:23:36.000000000 -0500 ++++ uClibc2/libc/sysdeps/linux/i386/bits/kernel_types.h 2008-12-28 01:19:51.000000000 -0600 +@@ -7,7 +7,8 @@ + + /* a hack for compiling a 32 bit user space with 64 bit + * kernel on x86_64 */ +-#if !defined(__ARCH_I386_POSIX_TYPES_H) && !defined(_ASM_X86_64_POSIX_TYPES_H) ++#if !defined(__ARCH_I386_POSIX_TYPES_H) && !defined(_ASM_X86_64_POSIX_TYPES_H) && !defined(_ASM_X86_POSIX_TYPES_32_H) ++#define _ASM_X86_POSIX_TYPES_32_H + #define _ASM_X86_64_POSIX_TYPES_H + #define __ARCH_I386_POSIX_TYPES_H + +diff -ruN uClibc/libc/sysdeps/linux/x86_64/bits/kernel_types.h uClibc2/libc/sysdeps/linux/x86_64/bits/kernel_types.h +--- uClibc/libc/sysdeps/linux/x86_64/bits/kernel_types.h 2008-07-23 06:23:36.000000000 -0500 ++++ uClibc2/libc/sysdeps/linux/x86_64/bits/kernel_types.h 2008-12-28 01:22:29.000000000 -0600 +@@ -4,8 +4,9 @@ + * our private content, and not the kernel header, will win. + * -Erik + */ +-#ifndef _ASM_X86_64_POSIX_TYPES_H ++#if !defined(_ASM_X86_64_POSIX_TYPES_H) && !defined(_ASM_X86_POSIX_TYPES_64_H) + #define _ASM_X86_64_POSIX_TYPES_H ++#define _ASM_X86_POSIX_TYPES_64_H + + typedef unsigned long __kernel_dev_t; + typedef unsigned long __kernel_ino_t;