Commit c445b2f6 authored by Evan Hunt's avatar Evan Hunt
Browse files

Add #ifdef BIND9 to some of the new DLZ code to fix link errors

when building with --enable-exportlibs
parent 9f453d93
......@@ -50,7 +50,7 @@
* USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dlz.c,v 1.8 2010/12/18 01:56:22 each Exp $ */
/* $Id: dlz.c,v 1.9 2010/12/19 02:51:40 each Exp $ */
/*! \file */
......@@ -232,9 +232,11 @@ dns_dlzdestroy(dns_dlzdb_t **dbp) {
*/
REQUIRE(dbp != NULL && DNS_DLZ_VALID(*dbp));
#ifdef BIND9
if ((*dbp)->ssutable != NULL) {
dns_ssutable_detach(&(*dbp)->ssutable);
}
#endif
/* call the drivers destroy method */
if ((*dbp) != NULL) {
......@@ -515,7 +517,7 @@ dns_dlzunregister(dns_dlzimplementation_t **dlzimp) {
RWUNLOCK(&dlz_implock, isc_rwlocktype_write);
}
#ifdef BIND9
/*
* Create a writeable DLZ zone. This can be called by DLZ drivers
* during configure() to create a zone that can be updated. The zone
......@@ -599,6 +601,7 @@ dns_dlz_writeablezone(dns_view_t *view, const char *zone_name) {
return (result);
}
#endif
/*%
* Configure a DLZ driver. This is optional, and if supplied gives
......
......@@ -50,7 +50,7 @@
* USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dlz.h,v 1.10 2010/12/18 01:56:22 each Exp $ */
/* $Id: dlz.h,v 1.11 2010/12/19 02:51:41 each Exp $ */
/*! \file dns/dlz.h */
......@@ -218,7 +218,9 @@ struct dns_dlzdb {
dns_dlzimplementation_t *implementation;
void *dbdata;
dlzconfigure_callback_t configure_callback;
#ifdef BIND9
dns_ssutable_t *ssutable;
#endif
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment