You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo....

27 lines
554 B

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 */