bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 05/21] spawn: do not include sched.h on OS/2 kLIBC


From: KO Myung-Hun
Subject: [PATCH 05/21] spawn: do not include sched.h on OS/2 kLIBC
Date: Sun, 30 Nov 2014 13:20:07 +0900

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]