diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-09-15 15:27:58 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-09-15 15:27:58 -0700 |
commit | 51f24be7ba5d15313ae94f8fb4500ce07cb98c84 (patch) | |
tree | f3536121698e05efea03dfb99c5f3f1db88f63b4 | |
parent | de20571d405bfb873f63a8645f143aef2b1455a9 (diff) | |
download | glibc-51f24be7ba5d15313ae94f8fb4500ce07cb98c84.tar glibc-51f24be7ba5d15313ae94f8fb4500ce07cb98c84.tar.gz glibc-51f24be7ba5d15313ae94f8fb4500ce07cb98c84.tar.bz2 glibc-51f24be7ba5d15313ae94f8fb4500ce07cb98c84.zip |
Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | misc/sys/param.h | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -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] 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 |