diff options
author | petef <petef@FreeBSD.org> | 2001-11-21 09:35:10 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-11-21 09:35:10 +0800 |
commit | 5c3a687ad6a42aba14fd23bcd4471c31747fd6e3 (patch) | |
tree | eed56d56919926af6c409d4d2cb45208bf4caa2a /print | |
parent | 2911a809b69250782af88050bfb57d914e627548 (diff) | |
download | freebsd-ports-gnome-5c3a687ad6a42aba14fd23bcd4471c31747fd6e3.tar.gz freebsd-ports-gnome-5c3a687ad6a42aba14fd23bcd4471c31747fd6e3.tar.zst freebsd-ports-gnome-5c3a687ad6a42aba14fd23bcd4471c31747fd6e3.zip |
Add a patch so a2ps doesn't bomb out if the machine it is called from has
a long hostname
PR: 26909
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Approved by: maintainer timeout
Diffstat (limited to 'print')
-rw-r--r-- | print/a2ps-letter/files/patch-lib::xgethostname.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/print/a2ps-letter/files/patch-lib::xgethostname.c b/print/a2ps-letter/files/patch-lib::xgethostname.c new file mode 100644 index 000000000000..06312ddf88e3 --- /dev/null +++ b/print/a2ps-letter/files/patch-lib::xgethostname.c @@ -0,0 +1,19 @@ +--- lib/xgethostname.c.orig Tue Nov 20 20:26:31 2001 ++++ lib/xgethostname.c Tue Nov 20 20:26:03 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 * |