Hi/2. Paul Eggert wrote: > KO Myung-Hun wrote: > >> /* 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 > > Please add a brief note to that comment, to explain why sched.h > shouldn't be included here. >
Added. -- KO Myung-Hun Using Mozilla SeaMonkey 2.7.2 Under OS/2 Warp 4 for Korean with FixPak #15 In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM Korean OS/2 User Community : http://www.ecomstation.co.kr
From e2e1b562b61704b153676b25be0f73a68e2cee1f Mon Sep 17 00:00:00 2001 From: KO Myung-Hun <[email protected]> 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 <sched.h> +/* kLIBC declares 'struct sched_param' in spawn.h. So including + sched.h here causes a redefinition error. */ +# ifndef __KLIBC__ +# include <sched.h> +# endif # include <signal.h> #endif -- 1.8.5.2
