diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-04-27 16:00:26 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-04-27 16:00:26 +0000 |
commit | 03156fbc9e57b8833d571c09fe86a65de05d8966 (patch) | |
tree | a41583195bf11eaddcc25d81461b4a49df2cefca /print/a2ps/files/patch-lib-xgethostname.c | |
parent | - rename patch, since it's now applied uncoditionally and remove EXTRA_PATCHE... (diff) |
Add libpaper support to print/a2ps-*[1], print/c2ps-*, print/lprps-*,
graphics/jpeg2ps-*, and merge the papersize-suffixed versions into
single ones respectively as print/psutils did.
Approved by: dinoex (maintainer) [1]
Diffstat (limited to 'print/a2ps/files/patch-lib-xgethostname.c')
-rw-r--r-- | print/a2ps/files/patch-lib-xgethostname.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/print/a2ps/files/patch-lib-xgethostname.c b/print/a2ps/files/patch-lib-xgethostname.c new file mode 100644 index 000000000000..06312ddf88e3 --- /dev/null +++ b/print/a2ps/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 * |