]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
be consistent in how ISC_PLATFORM_USETHREADS is defined and used
authorMark Andrews <marka@isc.org>
Tue, 8 Oct 2013 05:47:57 +0000 (16:47 +1100)
committerMark Andrews <marka@isc.org>
Tue, 8 Oct 2013 05:47:57 +0000 (16:47 +1100)
lib/dns/zone.c
lib/isc/win32/include/isc/platform.h

index 85bbb9d1e76f9d03fda3137a90c4f9397aeb2117..6269e761eee00cd516cf44b6754376cd104c0b96 100644 (file)
@@ -9283,7 +9283,7 @@ dns_zone_markdirty(dns_zone_t *zone) {
                        if (result != ISC_R_SUCCESS) {
                                UNLOCK_ZONE(zone);
                                secure = NULL;
-#if ISC_PLATFORM_USETHREADS
+#ifdef ISC_PLATFORM_USETHREADS
                                isc_thread_yield();
 #endif
                                goto again;
index d632d3cf7e581982b51b06e87180321f2d4fc726..ee4d5368919c54cf7e93ee9c41bd9bb920fd17c3 100644 (file)
@@ -24,7 +24,7 @@
  ***** Platform-dependent defines.
  *****/
 
-#define ISC_PLATFORM_USETHREADS
+#define ISC_PLATFORM_USETHREADS 1
 
 /***
  *** Network.