[Pkg-dspam-commits] [dspam] 01/01: Add patch to fix Hurd FTBFS with WIFCONTINUED
Thomas Preud'homme
robotux at alioth.debian.org
Sat Sep 7 21:34:09 UTC 2013
This is an automated email from the git hooks/post-receive script.
robotux pushed a commit to branch master
in repository dspam.
commit 8563e6fbdf7d1c511a311edd572e5c2676a63a9d
Author: Thomas Preud'homme <robotux at celest.fr>
Date: Sat Sep 7 21:14:20 2013 +0200
Add patch to fix Hurd FTBFS with WIFCONTINUED
---
debian/changelog | 7 ++++
...WCONTINUED_and_WIFCONTINUED_if_not_defined.diff | 34 ++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 42 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6097321..d59821c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dspam (3.10.2+dfsg-9) UNRELEASED; urgency=low
+
+ * Add patch 011_define_WCONTINUED_and_WIFCONTINUED_if_not_defined.diff to
+ fix Hurd FTBFS.
+
+ -- Thomas Preud'homme <robotux at debian.org> Sat, 07 Sep 2013 23:28:37 +0200
+
dspam (3.10.2+dfsg-8) unstable; urgency=low
* Remove obsolete DM-Upload-Allowed flag.
diff --git a/debian/patches/011_define_WCONTINUED_and_WIFCONTINUED_if_not_defined.diff b/debian/patches/011_define_WCONTINUED_and_WIFCONTINUED_if_not_defined.diff
new file mode 100644
index 0000000..a777162
--- /dev/null
+++ b/debian/patches/011_define_WCONTINUED_and_WIFCONTINUED_if_not_defined.diff
@@ -0,0 +1,34 @@
+From: Thomas Preud'homme <robotux at celest.fr>
+Date: Sat, 7 Sep 2013 20:52:23 +0200
+Subject: Define WCONTINUED and WIFCONTINUED if not defined
+
+WCONTINUED and WIFCONTINUED are Linux-specific macros to the wait system
+call. Thus, these macros might not be defined for other operating
+systems such as Hurd. This patch define WCONTINUED and WIFCONTINUED in
+such case so that the case of a child process receiving a SIGCONT is
+simply not notified.
+
+Origin: vendor
+Bug: https://sourceforge.net/p/dspam/bug-tracker/169/
+Last-Update: 2013-09-07
+---
+ src/external_lookup.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/external_lookup.c b/src/external_lookup.c
+index 4f8e10e..8d0dcc9 100644
+--- a/src/external_lookup.c
++++ b/src/external_lookup.c
+@@ -51,6 +51,12 @@
+ # define BIND_TIMEOUT 10
+ #endif
+
++/* Hurd */
++#ifndef WCONTINUED
++#define WCONTINUED 0
++#define WIFCONTINUED(status) 0
++#endif
++
+ void
+ sig_alrm(int signum)
+ {
diff --git a/debian/patches/series b/debian/patches/series
index 9daa0c3..0d32e11 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
008_fix_exim_integration_doc.diff
009_fix_recipient_corruption_when_releasing_message_from_quarantine.diff
010_set_legacy_escape_strings.diff
+011_define_WCONTINUED_and_WIFCONTINUED_if_not_defined.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-dspam/dspam.git
More information about the Pkg-dspam-commits
mailing list