Source: miniupnpc
Version: 1.5-2
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

miniupnpc-1.5-2 does not build on hurd-i386. due to that MAXHOSTNAMELEN
is not defined for GNU/Hurd. The attached patch defines it to 64 for
GNU in files miniwget.c and miniupnpc.c. Solving this problem properly
would include rewriting the function parseURL() in miniwget.c. This is
probably an issue for upstream, since several architectures will be
affected. This bug is related to #698705, where these problems are
mentioned. Additionally, upstream is at 1.8 now, maybe an upgrade could
be at hand, see http://miniupnp.free.fr/files/ (Looks like 1.6-2 is in
experimental since November 2011, why not in sid yet?)

Thanks!

--- a/miniwget.c	2010-12-21 17:14:17.000000000 +0100
+++ b/miniwget.c	2013-07-24 22:55:21.000000000 +0200
@@ -42,6 +42,9 @@
 #if defined(__sun) || defined(sun)
 #define MIN(x,y) (((x)<(y))?(x):(y))
 #endif
+#ifdef __GNU__
+#define MAXHOSTNAMELEN 64
+#endif
 
 #include "miniupnpcstrings.h"
 #include "miniwget.h"
--- a/miniupnpc.c	2013-07-31 10:01:29.000000000 +0200
+++ b/miniupnpc.c	2013-07-24 22:55:59.000000000 +0200
@@ -62,6 +62,9 @@
 /* Amiga OS specific stuff */
 #define TIMEVAL struct timeval
 #endif
+#ifdef __GNU__
+#define MAXHOSTNAMELEN 64
+#endif
 
 #include "miniupnpc.h"
 #include "minissdpc.h"

Reply via email to