patch for the HURD

Jonathan Bartlett
Thu, 04 Jan 2001 23:39:28 -0000

This is a small/trivial patch to get HURD to _compile_ (I haven't gotten
PRNG to work yet) openssh.  All it does is define MAXHOSTNAMELEN in
defines.h if it isn't already defined (there may need to be a library
loaded first, or you may want to incorporate that patch into canohost.c
instead of defines.h).  Anyway, small patch for canohost.c and defines.h
because HURD doesn't use MAXHOSTNAMELEN

Jonathan Bartlett

--
PGP information is available at http://members.wri.com/johnnyb/about/
-------------- next part --------------
--- canohost.c	Fri Oct 27 22:19:58 2000
+++ canohost-new.c	Thu Jan  4 11:24:26 2001
@@ -11,6 +11,7 @@
  * called by a name other than "ssh" or "Secure Shell".
  */

+#include "config.h"
 #include "includes.h"
 RCSID("$OpenBSD: canohost.c,v 1.16 2000/10/21 17:04:22 markus Exp
$");

-------------- next part --------------
--- defines.h	Thu Oct 19 17:14:05 2000
+++ defines-new.h	Thu Jan  4 11:21:58 2001
@@ -6,6 +6,7 @@
 # define _REENTRANT 1
 #endif

+
 /* Necessary headers */

 #include <sys/types.h> /* For [u]intxx_t */
@@ -71,6 +72,12 @@
 #endif /* IPTOS_LOWDELAY */

 #ifndef MAXPATHLEN
+/* HURD needs this - no maximum limits */
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 4095
+#endif
+
+
 # ifdef PATH_MAX
 #  define MAXPATHLEN PATH_MAX
 # else /* PATH_MAX */