changeset 656:98369d03cf6f

Patch to make uClibc 0.9.30.1 build for sparc with linux 2.6.29 headers - it's the same bug that hit x86/x86_64 when they were unified in 2.6.28.
author Rob Landley <rob@landley.net>
date Thu, 26 Mar 2009 18:32:55 -0500
parents 62a727f52a18
children a56fa2df4d82
files sources/patches/uClibc-fixsparc.patch
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/uClibc-fixsparc.patch	Thu Mar 26 18:32:55 2009 -0500
@@ -0,0 +1,15 @@
+diff -ru uClibc/libc/sysdeps/linux/sparc/bits/kernel_types.h uClibc.bak/libc/sysdeps/linux/sparc/bits/kernel_types.h
+--- uClibc/libc/sysdeps/linux/sparc/bits/kernel_types.h	2008-07-23 06:23:36.000000000 -0500
++++ uClibc.bak/libc/sysdeps/linux/sparc/bits/kernel_types.h	2009-03-26 18:05:26.000000000 -0500
+@@ -4,9 +4,10 @@
+  * our private content, and not the kernel header, will win.
+  *  -Erik
+  */
+-#if ! defined __ARCH_SPARC_POSIX_TYPES_H && ! defined __ARCH_SPARC64_POSIX_TYPES_H
++#if ! defined __ARCH_SPARC_POSIX_TYPES_H && ! defined __ARCH_SPARC64_POSIX_TYPES_H && !defined __SPARC_POSIX_TYPES_H
+ #define __ARCH_SPARC_POSIX_TYPES_H
+ #define __ARCH_SPARC64_POSIX_TYPES_H
++#define __SPARC_POSIX_TYPES_H
+ 
+ # if __WORDSIZE == 64
+ typedef unsigned long          __kernel_size_t;