]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add #ifdef BIND9 to some of the new DLZ code to fix link errors
authorEvan Hunt <each@isc.org>
Sun, 19 Dec 2010 02:51:41 +0000 (02:51 +0000)
committerEvan Hunt <each@isc.org>
Sun, 19 Dec 2010 02:51:41 +0000 (02:51 +0000)
when building with --enable-exportlibs

lib/dns/dlz.c
lib/dns/include/dns/dlz.h

index 242f61961db955306c80599d29e8bcb05498abe6..0b79b913bf06584b3f2bc791518bbc2c6388a346 100644 (file)
@@ -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
index d30c3e4f4f45cc1f83ce3e12922203e8be255d7c..56422b5ff5dda2d53eaaeea2540380c259900611 100644 (file)
@@ -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
 };