From 7049cfee24a745b918a6a55fe0e076c1ab75f563 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 15 Apr 2011 19:33:47 +0200 Subject: signal: cleanup, include only headers that are needed Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/signal/sigwait.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/signal/sigwait.c') diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c index 634a18dc5..5e9c4275f 100644 --- a/libc/signal/sigwait.c +++ b/libc/signal/sigwait.c @@ -19,15 +19,15 @@ * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ -#include +#define __need_NULL +#include #include -#include -#include #ifdef __UCLIBC_HAS_THREADS_NATIVE__ # include # ifdef __NR_rt_sigtimedwait +# include /* Return any pending signal or wait for one for the given time. */ static int do_sigwait(const sigset_t *set, int *sig) @@ -104,6 +104,8 @@ int sigwait (const sigset_t *set, int *sig) } # else /* __UCLIBC_HAS_REALTIME__ */ +# include +# include /* smallint */ /* variant without REALTIME extensions */ static smallint was_sig; /* obviously not thread-safe */ -- cgit v1.2.3