projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2726860
)
src: Fixed build on HP-UX IA64 v3.
author
ademin
<devnull@localhost>
Sat, 13 Feb 2010 18:07:27 +0000
(18:07 +0000)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/src/cmockery.c
b/src/cmockery.c
index 5e7143ed52e42ed851185dc97b7790ddeb06c05f..843349ffa7fdd6566ff46185aec15a6c60faa31e 100755
(executable)
--- 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);
}