From c9cb56d6bb8a15a34543ff96418867ece656e14d Mon Sep 17 00:00:00 2001 From: ademin Date: Sat, 13 Feb 2010 18:07:27 +0000 Subject: [PATCH] src: Fixed build on HP-UX IA64 v3. This fixes cmockery defect #11. The strsignal() function is not available on HP-UX IA64 v3. Signed-off-by: Andreas Schneider --- src/cmockery.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmockery.c b/src/cmockery.c index 5e7143e..843349f 100755 --- a/src/cmockery.c +++ b/src/cmockery.c @@ -1486,7 +1486,11 @@ void _fail(const char * const file, const int line) { #ifndef _WIN32 static void exception_handler(int sig) { +#ifdef _HPUX + print_error("%d\n", sig); +#else print_error("%s\n", strsignal(sig)); +#endif exit_test(1); } -- 2.34.1