From 06038c3d1d674d1f17a6d42640d363f3a4898bba Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 26 Nov 2007 14:45:55 +0100 Subject: [PATCH] wall: cleanup MAXHOSTNAMELEN Cc: Samuel Thibault Signed-off-by: Karel Zak --- login-utils/wall.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/login-utils/wall.c b/login-utils/wall.c index c9893d7e..42856ae3 100644 --- a/login-utils/wall.c +++ b/login-utils/wall.c @@ -67,6 +67,14 @@ void makemsg __P((char *)); #define IGNOREUSER "sleeper" +#ifndef MAXHOSTNAMELEN +# ifdef HOST_NAME_MAX +# define MAXHOSTNAMELEN HOST_NAME_MAX +# else +# define MAXHOSTNAMELEN 64 +# endif +#endif + int nobanner; int mbufsize; char *mbuf; -- 2.39.5