From 550ccf755fa2c249a61e0fd431ffef7f50a40178 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sat, 16 Oct 2010 18:58:16 +0300 Subject: [PATCH] Really fix the build on the GNU Hurd. --- changelog | 6 ++++++ patches/37-gnu-hurd.patch | 42 +++++++++++++++++++++++++++++++++++++++ patches/series | 1 + 3 files changed, 49 insertions(+) create mode 100644 patches/37-gnu-hurd.patch diff --git a/changelog b/changelog index 6c2d4c1..f65a4b7 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,9 @@ +dma (0.0.2010.06.17-6) UNRELEASED; urgency=low + + * Add the 37-gnu-hurd patch to really fix the FTBFS on GNU/Hurd. + + -- Peter Pentchev Sat, 16 Oct 2010 18:54:54 +0300 + dma (0.0.2010.06.17-5) unstable; urgency=low * Only use SA_NOCLDWAIT if available to fix the Hurd FTBFS. diff --git a/patches/37-gnu-hurd.patch b/patches/37-gnu-hurd.patch new file mode 100644 index 0000000..2a9c0d9 --- /dev/null +++ b/patches/37-gnu-hurd.patch @@ -0,0 +1,42 @@ +Description: Further fixes to the build on the GNU Hurd + - include for LOCK_EX + - define MAXHOSTNAMELEN if absent +Forwarded: no +Author: Peter Pentchev +Last-Update: 2010-10-16 + +--- a/spool.c ++++ b/spool.c +@@ -32,6 +32,7 @@ + * SUCH DAMAGE. + */ + ++#include + #include + + #include +--- a/util.c ++++ b/util.c +@@ -33,6 +33,7 @@ + */ + + #include ++#include + #include + #include + #include +@@ -43,6 +44,14 @@ + + #include "dma.h" + ++/** ++ * A quick'n'dirty hack to get dma to build on the GNU Hurd. ++ * A real fix would dynamically allocate the hostname array. ++ */ ++#ifndef MAXHOSTNAMELEN ++#define MAXHOSTNAMELEN 1024 ++#endif ++ + const char * + hostname(void) + { diff --git a/patches/series b/patches/series index 63f6e9b..efed742 100644 --- a/patches/series +++ b/patches/series @@ -19,3 +19,4 @@ 34-manpage-defaults.patch 35-delivery-retry.patch 36-sa_nocldwait.patch +37-gnu-hurd.patch -- 2.47.3