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

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 \