changeset 1268:30bab195be94

Fix uClibc so m4 and bison build against it.
author Rob Landley <rob@landley.net>
date Sat, 23 Oct 2010 15:15:29 -0500
parents cc56c6162563
children 7a60afa1846c
files sources/patches/uClibc-schedparam.patch
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/uClibc-schedparam.patch	Sat Oct 23 15:15:29 2010 -0500
@@ -0,0 +1,20 @@
+diff -ru uClibc/libc/sysdeps/linux/common/bits/sched.h uClibc.bak/libc/sysdeps/linux/common/bits/sched.h
+--- uClibc/libc/sysdeps/linux/common/bits/sched.h	2010-04-02 10:34:27.000000000 -0500
++++ uClibc.bak/libc/sysdeps/linux/common/bits/sched.h	2010-10-15 13:38:43.000000000 -0500
+@@ -61,6 +61,7 @@
+ # define CLONE_STOPPED	0x02000000 /* Start in stopped state.  */
+ #endif
+ 
++#undef sched_param
+ /* The official definition.  */
+ struct sched_param
+   {
+@@ -82,6 +83,8 @@
+ 
+ __END_DECLS
+ 
++#else
++#define sched_param __sched_param
+ #endif	/* need schedparam */
+ 
+ #if !defined __defined_schedparam \