src: Fixed build on HP-UX IA64 v3.
authorademin <devnull@localhost>
Sat, 13 Feb 2010 18:07:27 +0000 (18:07 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 17:51:53 +0000 (19:51 +0200)
This fixes cmockery defect #11. The strsignal() function is not
available on HP-UX IA64 v3.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmockery.c

index 5e7143e..843349f 100755 (executable)
@@ -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);
 }