From b08d08c7c44636f9c5d42cd5c993fb77c00886d6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 28 Oct 2004 15:06:47 +0000 Subject: [PATCH] * libc/include/sys/signal.h: Move include to bottom of file so that all relevant definitions have been handled for use in the include. --- newlib/ChangeLog | 6 ++++++ newlib/libc/include/sys/signal.h | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 03b989cee..c665fc3e6 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2004-10-28 Christopher Faylor + + * libc/include/sys/signal.h: Move include to bottom of file + so that all relevant definitions have been handled for use in the + include. + 2004-10-26 Jason Tishler * libc/stdio/fread.c (fread): Fix return value for unbuffered diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 9b6d7f891..78f06951e 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -2,13 +2,6 @@ #ifndef _SYS_SIGNAL_H #define _SYS_SIGNAL_H - -#ifndef _SIGNAL_H_ -/* Some applications take advantage of the fact that - * and are equivalent in glibc. Allow for that here. */ -#include -#endif - #ifdef __cplusplus extern "C" { #endif @@ -308,4 +301,10 @@ int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value)); #ifdef __cplusplus } #endif + +#ifndef _SIGNAL_H_ +/* Some applications take advantage of the fact that + * and are equivalent in glibc. Allow for that here. */ +#include +#endif #endif /* _SYS_SIGNAL_H */