From 57e278dab9aadae2d9de8c6d2d880d7a0363a156 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Dec 2010 20:34:24 +0000 Subject: 2010-12-03 Joel Sherrill * 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. --- cpukit/posix/src/signal_2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/posix') 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 #include -typedef void (*sighandler_t)(int); +#ifndef HAVE_SIGHANDLER_T + typedef void (*sighandler_t)(int); +#endif sighandler_t signal( int signum, -- cgit v1.2.3