]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Define ATOMIC_VAR_INIT() on Windows
authorMichał Kępień <michal@isc.org>
Wed, 3 Jul 2019 12:25:11 +0000 (14:25 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 3 Jul 2019 12:27:53 +0000 (14:27 +0200)
Commit b104a9bc503033b4c3174f088e2c5bdbc5d8bb51 introduced unconditional
use of the ATOMIC_VAR_INIT() macro in bin/dnssec/dnssec-signzone.c even
though that macro is only defined on Unix platforms.  Define it on
Windows systems as well in order to prevent build failures.

lib/isc/win32/include/isc/stdatomic.h

index f27141c66d08879df78b1441c07f8e3ce9157fb7..2482bb57936d2ae8c9427c8301edcc88f485bc96 100644 (file)
@@ -26,6 +26,8 @@
 
 #include <isc/util.h>
 
+#define ATOMIC_VAR_INIT(x)     x
+
 #ifndef __ATOMIC_RELAXED
 #define __ATOMIC_RELAXED        0
 #endif