xref: /OK3568_Linux_fs/buildroot/package/dante/0001-fix-sparc-compile.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSignal handling for sparc is broken, fix it.
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunSigned-off-by: Waldemar Brodkorb <wbx@openadk.org>
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun--- dante-1.4.1.orig/lib/tostring.c	2014-08-21 18:21:50.000000000 +0200
6*4882a593Smuzhiyun+++ dante-1.4.1/lib/tostring.c	2016-07-10 10:08:39.785662622 +0200
7*4882a593Smuzhiyun@@ -1526,7 +1526,7 @@ signal2string(sig)
8*4882a593Smuzhiyun          return "SIGKILL";
9*4882a593Smuzhiyun #endif /* SIGKILL */
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun-#if (defined SIGLOST) && (!defined SIGABRT || SIGLOST != SIGABRT)
12*4882a593Smuzhiyun+#if (defined SIGLOST) && (!defined SIGABRT || SIGLOST != SIGABRT || SIGLOST != SIGPWR)
13*4882a593Smuzhiyun       case SIGLOST:
14*4882a593Smuzhiyun          return "SIGLOST";
15*4882a593Smuzhiyun #endif /* SIGLOST */
16*4882a593Smuzhiyun@@ -1551,7 +1551,7 @@ signal2string(sig)
17*4882a593Smuzhiyun          return "SIGPROF";
18*4882a593Smuzhiyun #endif /* SIGPROF */
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun-#ifdef SIGPWR
21*4882a593Smuzhiyun+#if (defined SIGPWR) && SIGPWR != SIGLOST
22*4882a593Smuzhiyun       case SIGPWR:
23*4882a593Smuzhiyun          return "SIGPWR";
24*4882a593Smuzhiyun #endif /* SIGPWR */
25