Solaris users with BIND installed lose MAXHOSTNAMELEN

This commit is contained in:
bdc 1996-09-26 20:18:35 +00:00
parent d5b9e978b6
commit 4e05a0aaf1
1 changed files with 11 additions and 0 deletions

View File

@ -12,7 +12,18 @@
#include <sys/time.h>
#include <fcntl.h> /* for O_RDWR */
#include <sys/stat.h>
#include <netdb.h>
/* 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 <arpa/nameser.h>
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN MAXDNAME
#endif
#endif
#include <pwd.h>
#include <sys/param.h> /* For gethostname() */
#include <errno.h>