From: Jeffrey Altman Date: Fri, 1 Oct 2004 04:18:22 +0000 (+0000) Subject: * hst_realm.c: provide definition for MAXDNAME if X-Git-Tag: krb5-1.4-beta1~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8c0ccc4187e1405ec7ed8113485b3565ffe55cb;p=krb5.git * hst_realm.c: provide definition for MAXDNAME if KRB5_DNS_LOOKUP is not defined. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16795 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index e41eeac1f..96ae144d8 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2004-09-30 Jeffrey Altman + + * hst_realm.c: provide definition for MAXDNAME if + KRB5_DNS_LOOKUP is not defined. + 2004-09-22 Ken Raeburn * Makefile.in (T_STD_CONF_OBJS): Include dnsglue.o. diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c index 574fe70cb..7e0335a42 100644 --- a/src/lib/krb5/os/hst_realm.c +++ b/src/lib/krb5/os/hst_realm.c @@ -65,7 +65,6 @@ * host names should be in the usual form (e.g. FOO.BAR.BAZ) */ -#include "dnsglue.h" #define NEED_SOCKETS #include "k5-int.h" @@ -81,6 +80,8 @@ #include "fake-addrinfo.h" #ifdef KRB5_DNS_LOOKUP + +#include "dnsglue.h" /* * Try to look up a TXT record pointing to a Kerberos realm */ @@ -152,6 +153,10 @@ errout: } return retval; } +#else /* KRB5_DNS_LOOKUP */ +#ifndef MAXDNAME +#define MAXDNAME (16 * MAXHOSTNAMELEN) +#endif /* MAXDNAME */ #endif /* KRB5_DNS_LOOKUP */ krb5_error_code krb5int_translate_gai_error (int);