*not* MAXHOSTNAMELEN, which is the maximum length
of an argument to gethostname or sethostname.
Look for arpa/nameser.h to find this constant,
defining it to 256 inf not present in an included file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7548
dc483132-0cff-0310-8789-
dd5450dbe970
+Sun Feb 25 20:32:57 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * configure.in: Check for arpa/nameser.h
+
+ * commands.c : use MAXDNAME as maximum length of a domain.
+
Sun Nov 12 04:53:17 1995 Mark W. Eichin <eichin@cygnus.com>
* main.c: initialize line (to avoid splitting up forward.c.)
#include <netinet/ip.h>
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
+#if HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
+
+#ifndef MAXDNAME
+#define MAXDNAME 256 /*per the rfc*/
#endif
#if defined(IPPROTO_IP) && defined(IP_TOS)
#endif /* defined(IPPROTO_IP) && defined(IP_TOS) */
char *hostname;
-static char _hostname[MAXHOSTNAMELEN];
+static char _hostname[MAXDNAME];
extern char *getenv();
CONFIG_RULES
AC_PROG_INSTALL
AC_VFORK
-AC_CHECK_HEADERS(string.h)
+AC_CHECK_HEADERS(string.h arpa/nameser.h)
AC_HAVE_HEADERS(unistd.h sys/select.h stdlib.h)
AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
LIBS="$LIBS -ltermcap")