diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-12-03 20:34:24 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-12-03 20:34:24 +0000 |
commit | 57e278dab9aadae2d9de8c6d2d880d7a0363a156 (patch) | |
tree | 336ec95ed94b67ae454b8478f1e7e28b61e3463e /cpukit/posix | |
parent | Typo. (diff) | |
download | rtems-57e278dab9aadae2d9de8c6d2d880d7a0363a156.tar.bz2 |
2010-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, posix/src/signal_2.c: sighandler_t is defined
conditionally in some versions of newlib and unconditionally in
others. Make sure we always compile.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/signal_2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/posix/src/signal_2.c b/cpukit/posix/src/signal_2.c index 8d9c483803..326861752f 100644 --- a/cpukit/posix/src/signal_2.c +++ b/cpukit/posix/src/signal_2.c @@ -18,7 +18,9 @@ #include <signal.h> #include <errno.h> -typedef void (*sighandler_t)(int); +#ifndef HAVE_SIGHANDLER_T + typedef void (*sighandler_t)(int); +#endif sighandler_t signal( int signum, |