From e2e1b562b61704b153676b25be0f73a68e2cee1f Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Sat, 27 Apr 2013 15:33:09 +0900 Subject: [PATCH] spawn: do not include sched.h on OS/2 kLIBC kLIBC declares 'struct sched_param' in spawn.h, so including 'sched.h' to get it causes a redefinition error. * lib/spawn.in.h: Do not include sched.h on OS/2 kLIBC. --- lib/spawn.in.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/spawn.in.h b/lib/spawn.in.h index eb76bb0..794a102 100644 --- a/lib/spawn.in.h +++ b/lib/spawn.in.h @@ -33,7 +33,11 @@ /* Get definitions of 'struct sched_param' and 'sigset_t'. But avoid namespace pollution on glibc systems. */ #if !(defined __GLIBC__ && !defined __UCLIBC__) -# include +/* kLIBC declares 'struct sched_param' in spawn.h. So including + sched.h here causes a redefinition error. */ +# ifndef __KLIBC__ +# include +# endif # include #endif -- 1.8.5.2