]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix statistics for x86 Windows builds
authorMichał Kępień <michal@isc.org>
Fri, 7 Jun 2019 13:21:43 +0000 (15:21 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 20 Jun 2019 16:34:27 +0000 (18:34 +0200)
commitde65b8f0f8f94c70431053bb4e047c4294ea7143
treee187889417fa06c58db40ad27ffbf5b361855f0d
parent095cfa32a366030516df08d20de098d3db456a4e
Fix statistics for x86 Windows builds

Using atomic_int_fast64_t variables with atomic functions on x86 does
not cause Visual Studio to report build errors, but such operations
yield useless results.  Since the isc_stat_t type is unconditionally
typedef'd to atomic_int_fast64_t, any code performing atomic operations
on isc_stat_t variables is broken in x86 Windows builds.  Fix by using
the atomic_int_fast32_t type for isc_stat_t in x86 Windows builds.

(cherry picked from commit e21103f2d37d339886b09387b08239c838d50ef1)
doc/arm/Bv9ARM-book.xml
lib/isc/stats.c