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