diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-09-14 11:15:25 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-09-14 11:15:25 -0700 |
commit | 0ddbbafd8bcdf84d467227e3c1e6fd0cebbb31c5 (patch) | |
tree | d4470813cc904d7f6bece032ae5e9ab0fd2f4cfe | |
parent | 3b2cc56dbcbee6bc211cbb58a08384aa6147f825 (diff) | |
download | glibc-0ddbbafd8bcdf84d467227e3c1e6fd0cebbb31c5.tar.gz |
Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.roland/maxhostname
-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-14 Roland McGrath <roland@hack.frob.com> + + * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX] + (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX. + 2015-09-14 Carlos O'Donell <carlos@redhat.com> * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from 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 |