From 51f24be7ba5d15313ae94f8fb4500ce07cb98c84 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 15 Sep 2015 15:27:58 -0700 Subject: Use HOST_NAME_MAX for MAXHOSTNAMELEN in . --- misc/sys/param.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'misc') diff --git a/misc/sys/param.h b/misc/sys/param.h index 62b7ed2..1908b93 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 -- cgit v1.1