From: Karel Zak Date: Mon, 26 Nov 2007 13:45:55 +0000 (+0100) Subject: wall: cleanup MAXHOSTNAMELEN X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06038c3d1d674d1f17a6d42640d363f3a4898bba;p=util-linux wall: cleanup MAXHOSTNAMELEN Cc: Samuel Thibault Signed-off-by: Karel Zak --- 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;