summaryrefslogtreecommitdiff
blob: 86d54d6a37cb9d11a090932e6141cecfba229143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Make sure SIGPWR is not the same as SIGINFO
 Avoid a duplicate case value in a switch statement on e.g. Alpha.
Forwarded: not-yet
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2016-04-11

--- a/lib/tostring.c
+++ b/lib/tostring.c
@@ -1551,7 +1551,17 @@
          return "SIGPROF";
 #endif /* SIGPROF */
 
+#undef NEED_SIGPWR
+
 #ifdef SIGPWR
+#ifndef SIGINFO
+#define NEED_SIGPWR
+#elif SIGINFO != SIGPWR
+#define NEED_SIGPWR
+#endif
+#endif
+
+#ifdef NEED_SIGPWR
       case SIGPWR:
          return "SIGPWR";
 #endif /* SIGPWR */