Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.

This commit is contained in:
Roland McGrath 2015-09-15 15:27:58 -07:00
parent de20571d40
commit 51f24be7ba
2 changed files with 8 additions and 0 deletions

View File

@ -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-15 Joseph Myers <joseph@codesourcery.com>
[BZ #18967]

View 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