From 173f98fc24b4bfa31ed4cbd32f6d6e11067bc07b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 22 Dec 2003 18:24:41 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/dnssrv.c | 2 ++ 2 files changed, 7 insertions(+) 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 -- 2.26.2