From 4e05a0aaf1a422e23a6bae0747a97b1c2d78a1cc Mon Sep 17 00:00:00 2001 From: bdc Date: Thu, 26 Sep 1996 20:18:35 +0000 Subject: [PATCH] Solaris users with BIND installed lose MAXHOSTNAMELEN --- scsh/syscalls1.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scsh/syscalls1.c b/scsh/syscalls1.c index c247c7f..c171bef 100644 --- a/scsh/syscalls1.c +++ b/scsh/syscalls1.c @@ -12,7 +12,18 @@ #include #include /* for O_RDWR */ #include + #include +/* This losage brought to you by Solaris and BIND */ +/* We thank Solaris for forcing users to get a new BIND */ +/* We thank BIND for blowing away the Solaris includea for MAXHOSTNAMELEN */ +#ifndef MAXHOSTNAMELEN +#include +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN MAXDNAME +#endif +#endif + #include #include /* For gethostname() */ #include