Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2001 12:53:20 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        freebsd-gnats-submit@FreeBSD.org, dburr@borg-cube.com
Cc:        freebsd-ports@freebsd.org, chuckr@FreeBSD.org
Subject:   Re: ports/26909: a2ps cannot handle long hostnames
Message-ID:  <20011109125320.A66144@k7.mavetju.org>

next in thread | raw e-mail | index | archive | help
The following file (patch-lib-xgethostname.c)  will solve the
problem. Add it the files-directory of a2ps-a4, a2ps-letter and
a2ps-letterdj and you're off!

I'll write this to the authors (if I can find them) of a2ps.

--- lib/xgethostname.c.orig     Thu Nov  8 17:26:00 2001
+++ lib/xgethostname.c  Thu Nov  8 17:26:43 2001
@@ -22,6 +22,7 @@
 #endif
 
 #include <sys/types.h>
+#include <sys/param.h>
 
 #include <errno.h>
 #ifndef errno
@@ -38,7 +39,7 @@
 int gethostname ();
 
 #ifndef INITIAL_HOSTNAME_LENGTH
-# define INITIAL_HOSTNAME_LENGTH 34
+# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN
 #endif
 
 char *


-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011109125320.A66144>