summaryrefslogtreecommitdiff
path: root/net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch')
-rw-r--r--net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch b/net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch
new file mode 100644
index 000000000000..86d54d6a37cb
--- /dev/null
+++ b/net-proxy/dante/files/dante-1.4.1-sigpwr-siginfo.patch
@@ -0,0 +1,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 */