mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.
This commit is contained in:
parent
de20571d40
commit
51f24be7ba
@ -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>
|
2015-09-15 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #18967]
|
[BZ #18967]
|
||||||
|
@ -50,6 +50,9 @@
|
|||||||
#if !defined NOFILE && defined OPEN_MAX
|
#if !defined NOFILE && defined OPEN_MAX
|
||||||
# define NOFILE OPEN_MAX
|
# define NOFILE OPEN_MAX
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined MAXHOSTNAMELEN && defined HOST_NAME_MAX
|
||||||
|
# define MAXHOSTNAMELEN HOST_NAME_MAX
|
||||||
|
#endif
|
||||||
#ifndef NCARGS
|
#ifndef NCARGS
|
||||||
# ifdef ARG_MAX
|
# ifdef ARG_MAX
|
||||||
# define NCARGS ARG_MAX
|
# define NCARGS ARG_MAX
|
||||||
|
Loading…
Reference in New Issue
Block a user