pdns-recursor (3.2-4) hurd-ftbfs-patch

Summary

 Makefile |    3 +++
 misc.cc  |    3 +++
 2 files changed, 6 insertions(+)

    
download this patch

Patch contents

Index: b/misc.cc
===================================================================
--- a/misc.cc	2010-07-20 13:42:34.000000000 +0200
+++ b/misc.cc	2010-07-20 13:56:57.000000000 +0200
@@ -393,6 +393,9 @@
 #ifdef WIN32
 # define MAXHOSTNAMELEN 1025
 #endif // WIN32
+#ifndef MAXHOSTNAMELEN
+# define MAXHOSTNAMELEN 255
+#endif
 
   char tmp[MAXHOSTNAMELEN];
   if(gethostname(tmp, MAXHOSTNAMELEN))
Index: b/Makefile
===================================================================
--- a/Makefile	2010-07-20 14:07:21.000000000 +0200
+++ b/Makefile	2010-07-20 14:07:53.000000000 +0200
@@ -31,6 +31,9 @@
 ifeq ($(shell uname),GNU/kFreeBSD)
 	-include sysdeps/FreeBSD.inc
 endif
+ifeq ($(shell uname),GNU/Hurd)
+	-include sysdeps/Linux.inc
+endif
 
 ifeq ($(LUA), 1)
 	LUALIBS=$(LUA_LIBS_CONFIG)