]> err.no Git - util-linux/commitdiff
wall: cleanup MAXHOSTNAMELEN
authorKarel Zak <kzak@redhat.com>
Mon, 26 Nov 2007 13:45:55 +0000 (14:45 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Nov 2007 13:50:34 +0000 (14:50 +0100)
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/wall.c

index c9893d7e4565965ade52c41a1fe944daa76d185a..42856ae388190fe8cf821b9016d1b33fab0156f2 100644 (file)
@@ -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;