view sources/patches/uClibc-fixsparc.patch @ 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
children
line wrap: on
line source

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;