bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] spawn.h: fix header inclusion for uClibc systems


From: Mike Frysinger
Subject: [PATCH] spawn.h: fix header inclusion for uClibc systems
Date: Fri, 19 Nov 2010 23:34:35 -0500

From: Khem Raj <address@hidden>

uclibc defines __GLIBC__ but it does not expose struct shed_param as
much as glibc and is not needed too per standard.  gnulib attempts to
use it but we have to account for it because in this case uclibc does
not behave like glibc.

Signed-off-by: Khem Raj <address@hidden>
Signed-off-by: Mike Frysinger <address@hidden>
---
 lib/spawn.in.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/spawn.in.h b/lib/spawn.in.h
index 26c3c10..c4304a3 100644
--- a/lib/spawn.in.h
+++ b/lib/spawn.in.h
@@ -32,7 +32,7 @@
 
 /* Get definitions of 'struct sched_param' and 'sigset_t'.
    But avoid namespace pollution on glibc systems.  */
-#ifndef __GLIBC__
+#if !defined __GLIBC__ || defined __UCLIBC__
 # include <sched.h>
 # include <signal.h>
 #endif
-- 
1.7.3.2




reply via email to

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