Solaris users with BIND installed lose MAXHOSTNAMELEN
This commit is contained in:
parent
d5b9e978b6
commit
4e05a0aaf1
|
@ -12,7 +12,18 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <fcntl.h> /* for O_RDWR */
|
#include <fcntl.h> /* for O_RDWR */
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <netdb.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 <pwd.h>
|
||||||
#include <sys/param.h> /* For gethostname() */
|
#include <sys/param.h> /* For gethostname() */
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
Loading…
Reference in New Issue