From: Jeffrey Altman Date: Mon, 22 Dec 2003 18:24:41 +0000 (+0000) Subject: * dnssrv.c: wrap the entire module in #ifdef KRB5_DNS_LOOKUP to prevent X-Git-Tag: krb5-1.4-beta1~674 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=173f98fc24b4bfa31ed4cbd32f6d6e11067bc07b;p=krb5.git * dnssrv.c: wrap the entire module in #ifdef KRB5_DNS_LOOKUP to prevent the dependency on the resolver library when DNS functionality is not being compiled into the krb5 library. ticket: new target_version: 1.3.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15958 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index a916ef171..d28b0093e 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2003-12-22 Jeffrey Altman + + * dnssrv.c: wrap within #ifdef KRB5_DNS_LOOKUP to prevent references + to resolver functions when DNS support is not being compiled + 2003-12-19 Ken Raeburn * realm_iter.c (krb5_realm_iterator_create): Array NAMES is now diff --git a/src/lib/krb5/os/dnssrv.c b/src/lib/krb5/os/dnssrv.c index 4f3ed362f..90279fdd3 100644 --- a/src/lib/krb5/os/dnssrv.c +++ b/src/lib/krb5/os/dnssrv.c @@ -27,6 +27,7 @@ * do DNS SRV RR queries */ +#ifdef KRB5_DNS_LOOKUP #define NEED_SOCKETS #include "k5-int.h" #include "os-proto.h" @@ -269,3 +270,4 @@ krb5int_make_srv_query_realm(const krb5_data *realm, *answers = head; return 0; } +#endif \ No newline at end of file