blob: 06312ddf88e3472985e6055bd109a6cb0f004681 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 *
|