check_function_exists(printf HAVE_PRINTF)
check_function_exists(setjmp HAVE_SETJMP)
check_function_exists(signal HAVE_SIGNAL)
+check_function_exists(strsignal HAVE_STRSIGNAL)
check_function_exists(sprintf HAVE_SNPRINTF)
check_function_exists(strcmp HAVE_STRCMP)
check_function_exists(strcpy HAVE_STRCPY)
#ifndef _WIN32
static void exception_handler(int sig) {
-#ifdef _HPUX
- print_error("%d\n", sig);
-#else
+#ifdef HAVE_STRSIGNAL
print_error("%s\n", strsignal(sig));
+#else
+ print_error("%d\n", sig);
#endif
exit_test(1);
}