aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-09-15 15:27:58 -0700
committerRoland McGrath <roland@hack.frob.com>2015-09-15 15:50:24 -0700
commit666bb4dc55f5a93538d020024c34abad641f50ae (patch)
treeec39bc719096bfe900abdf9cbcb655e491e173cb
parent38810947f96183501784c7f477291d04629b36dc (diff)
downloadglibc-666bb4dc55f5a93538d020024c34abad641f50ae.tar
glibc-666bb4dc55f5a93538d020024c34abad641f50ae.tar.gz
glibc-666bb4dc55f5a93538d020024c34abad641f50ae.tar.bz2
glibc-666bb4dc55f5a93538d020024c34abad641f50ae.zip
Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.
(cherry picked from commit 51f24be7ba5d15313ae94f8fb4500ce07cb98c84)
-rw-r--r--ChangeLog5
-rw-r--r--misc/sys/param.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c5ec45001..a25da67075 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-15 Roland McGrath <roland@hack.frob.com>
+
+ * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
+ (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
+
2015-09-11 Roland McGrath <roland@hack.frob.com>
* sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
diff --git a/misc/sys/param.h b/misc/sys/param.h
index 62b7ed26f4..1908b930b4 100644
--- a/misc/sys/param.h
+++ b/misc/sys/param.h
@@ -50,6 +50,9 @@
#if !defined NOFILE && defined OPEN_MAX
# define NOFILE OPEN_MAX
#endif
+#if !defined MAXHOSTNAMELEN && defined HOST_NAME_MAX
+# define MAXHOSTNAMELEN HOST_NAME_MAX
+#endif
#ifndef NCARGS
# ifdef ARG_MAX
# define NCARGS ARG_MAX