Source: uclmmbase
Version: 1.2.16.0-1
Severity: important
Tags: patch
Usertags: hurd
User: [email protected]

Hello,

currently uclmmbase FTBFS on GNU/Hurd due to a missing definition of
MAXHOSTNAMELEN. The attached patch fixes this problem, and defines it
to _POSIX_HOST_NAME_MAX when not available.

Thanks!
Index: uclmmbase-1.2.16.0/src/config_unix.h
===================================================================
--- uclmmbase-1.2.16.0.orig/src/config_unix.h
+++ uclmmbase-1.2.16.0/src/config_unix.h
@@ -141,6 +141,11 @@
 
 #endif /* HAVE_IPv6 */
 
+#ifndef MAXHOSTNAMELEN
+#define _GNU_SOURCE
+#define MAXHOSTNAMELEN _POSIX_HOST_NAME_MAX
+#endif
+
 #include <net/if.h>
 
 typedef u_char	ttl_t;

Reply via email to