diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b5d8c89a0..f5e66b58c 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2014-08-18 Corinna Vinschen + + * libc/include/sys/signal.h: Declare sigaltstack for RTEMS only. + 2014-08-18 Jeff Johnston * libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index bbc2cd988..82802e2a1 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -192,10 +192,11 @@ int _EXFUN(sigpending, (sigset_t *)); int _EXFUN(sigsuspend, (const sigset_t *)); int _EXFUN(sigpause, (int)); - +#ifdef __rtems__ #if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112 int _EXFUN(sigaltstack, (const stack_t *__restrict, stack_t *__restrict)); #endif +#endif #if defined(_POSIX_THREADS) #ifdef __CYGWIN__