kLIBC declares struct sched_param in spawn.h, so a redefinition error occurs.
* lib/spawn.in.h: Do not include sched.h on OS/2 kLIBC. --- lib/spawn.in.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/spawn.in.h b/lib/spawn.in.h index eb76bb0..134cb08 100644 --- a/lib/spawn.in.h +++ b/lib/spawn.in.h @@ -33,7 +33,9 @@ /* Get definitions of 'struct sched_param' and 'sigset_t'. But avoid namespace pollution on glibc systems. */ #if !(defined __GLIBC__ && !defined __UCLIBC__) -# include <sched.h> +# ifndef __KLIBC__ +# include <sched.h> +# endif # include <signal.h> #endif -- 1.8.5.2