]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.
authorRoland McGrath <roland@hack.frob.com>
Tue, 15 Sep 2015 22:27:58 +0000 (15:27 -0700)
committerRoland McGrath <roland@hack.frob.com>
Tue, 15 Sep 2015 22:50:24 +0000 (15:50 -0700)
(cherry picked from commit 51f24be7ba5d15313ae94f8fb4500ce07cb98c84)

ChangeLog
misc/sys/param.h

index 1c5ec450011149ea9a10d33a6adc613ddf7d3a78..a25da67075ef89a8fb23e72bf46bab7af3547d35 100644 (file)
--- 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):
index 62b7ed26f41c96cca3637271a1055f4aa0eccf65..1908b930b4577dff5f91472ce2315412c02233b5 100644 (file)
@@ -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