mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
fcb81602de
a long hostname PR: 26909 Submitted by: Edwin Groothuis <edwin@mavetju.org> Approved by: maintainer timeout
20 lines
399 B
C
20 lines
399 B
C
--- 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 *
|