* dnssrv.c: wrap the entire module in #ifdef KRB5_DNS_LOOKUP to prevent
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 22 Dec 2003 18:24:41 +0000 (18:24 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 22 Dec 2003 18:24:41 +0000 (18:24 +0000)
   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
src/lib/krb5/os/dnssrv.c

index a916ef171355842ee1668a3baa4ffd992b78d6e6..d28b0093e2ca27d162df14ee7bd68fe6d37563dc 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-22  Jeffrey Altman <jaltman@mit.edu>
+
+    * 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  <raeburn@mit.edu>
 
        * realm_iter.c (krb5_realm_iterator_create): Array NAMES is now
index 4f3ed362f8045ad2552565a6ef5234f88518eeb2..90279fdd356a7007218033d21f3707b64306f526 100644 (file)
@@ -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