#202 Yet another change to support BIND 9.16.11 API change
Merged 4 months ago by abbra. Opened 4 months ago by pemensik.
pemensik/bind-dyndb-ldap bind-9.16.10-support  into  master

file modified
+5
@@ -17,6 +17,7 @@ 

  #include <dns/zone.h>

  

  #include "util.h"

+ #include "config.h"

  

  /**

   * Write given diff to zone journal. Journal will be created
@@ -61,7 +62,11 @@ 

  	REQUIRE(soa_tuple->rdata.type == dns_rdatatype_soa);

  

  	serial = dns_soa_getserial(&soa_tuple->rdata);

+ #if LIBDNS_VERSION_MAJOR >= 1611

+ 	serial = dns_update_soaserial(serial, method, NULL);

+ #else

  	serial = dns_update_soaserial(serial, method);

+ #endif

  	dns_soa_setserial(serial, &soa_tuple->rdata);

  	if (new_serial != NULL)

  		*new_serial = serial;

Another change with another release, new parameter is added again.
Add another ifdef to keep compatibility with both versions.

Pull-Request has been merged by abbra

4 months ago
Metadata