summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-11-17 23:14:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2014-11-17 23:14:08 +0300
commitc627fd9c673e5a1358a51ee56bdcd6f4437d04e2 (patch)
tree34f9e4a3923cf732e1593190ccd1cdc5322ff58c
parent3c933880285d3f02ec364c49eae2071148ac6294 (diff)
downloadsendmail-c627fd9c673e5a1358a51ee56bdcd6f4437d04e2.tar.gz
POSIX sigwait is the default on Dyson
-rw-r--r--debian/patches/8.14/8.14.4/dyson-sigwait.patch16
-rw-r--r--debian/patches/8.14/8.14.4/series1
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/8.14/8.14.4/dyson-sigwait.patch b/debian/patches/8.14/8.14.4/dyson-sigwait.patch
new file mode 100644
index 0000000..6379a13
--- /dev/null
+++ b/debian/patches/8.14/8.14.4/dyson-sigwait.patch
@@ -0,0 +1,16 @@
+Index: sendmail-8.14.4/libmilter/signal.c
+===================================================================
+--- sendmail-8.14.4.orig/libmilter/signal.c
++++ sendmail-8.14.4/libmilter/signal.c
+@@ -104,11 +104,7 @@ mi_signal_thread(name)
+ for (;;)
+ {
+ sigerr = sig = 0;
+-#if defined(SOLARIS) || defined(__svr5__)
+- if ((sig = sigwait(&set)) < 0)
+-#else /* defined(SOLARIS) || defined(__svr5__) */
+ if ((sigerr = sigwait(&set, &sig)) != 0)
+-#endif /* defined(SOLARIS) || defined(__svr5__) */
+ {
+ /* some OS return -1 and set errno: copy it */
+ if (sigerr <= 0)
diff --git a/debian/patches/8.14/8.14.4/series b/debian/patches/8.14/8.14.4/series
index 6de1aa7..8a7abdb 100644
--- a/debian/patches/8.14/8.14.4/series
+++ b/debian/patches/8.14/8.14.4/series
@@ -22,3 +22,4 @@ install_static_libs.patch
shared_libmilter.patch
libmilter-assert.patch
close_on_exec.patch
+dyson-sigwait.patch