diff options
Diffstat (limited to 'print/a2ps/files/patch-xgethostname.c')
-rw-r--r-- | print/a2ps/files/patch-xgethostname.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/print/a2ps/files/patch-xgethostname.c b/print/a2ps/files/patch-xgethostname.c index bfc7c33e0a6..10246118e25 100644 --- a/print/a2ps/files/patch-xgethostname.c +++ b/print/a2ps/files/patch-xgethostname.c @@ -1,6 +1,23 @@ ---- lib/xgethostname.c Tue Sep 4 00:51:26 2001 -+++ lib/xgethostname.c.new Tue Sep 4 00:55:39 2001 -@@ -63,7 +63,7 @@ +--- lib/xgethostname.c.orig Tue Sep 4 00:51:26 2001 ++++ lib/xgethostname.c Tue Sep 4 00:55:39 2001 +@@ -21,6 +21,7 @@ + # include <config.h> + #endif + ++#include <sys/param.h> + #include <sys/types.h> + + #include <errno.h> +@@ -38,7 +39,7 @@ + int gethostname (); + + #ifndef INITIAL_HOSTNAME_LENGTH +-# define INITIAL_HOSTNAME_LENGTH 34 ++# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN + #endif + + char * +@@ -63,7 +64,7 @@ if (err == 0 && hostname[k] == '\0') break; #ifdef ENAMETOOLONG @@ -9,4 +26,3 @@ error (EXIT_FAILURE, errno, "gethostname"); #endif size *= 2; - |