diff --git a/tests/libtest/ns.c b/tests/libtest/ns.c index 8583f64060..587f5be46b 100644 --- a/tests/libtest/ns.c +++ b/tests/libtest/ns.c @@ -55,6 +55,9 @@ dns_dispatchmgr_t *dispatchmgr = NULL; ns_interfacemgr_t *interfacemgr = NULL; ns_server_t *sctx = NULL; +atomic_uint_fast32_t client_refs[32]; +atomic_uintptr_t client_addrs[32]; + static isc_result_t matchview(isc_netaddr_t *srcaddr, isc_netaddr_t *destaddr, dns_message_t *message, dns_aclenv_t *env, ns_server_t *lsctx, diff --git a/tests/ns/netmgr_wrap.c b/tests/ns/netmgr_wrap.c index f32a6c9113..f2b265c329 100644 --- a/tests/ns/netmgr_wrap.c +++ b/tests/ns/netmgr_wrap.c @@ -21,6 +21,8 @@ #include +#include + #if ISC_NETMGR_TRACE #define FLARG \ , const char *func ISC_ATTR_UNUSED, const char *file ISC_ATTR_UNUSED, \ @@ -32,8 +34,6 @@ /* * We don't want to use netmgr-based client accounting, we need to emulate it. */ -atomic_uint_fast32_t client_refs[32]; -atomic_uintptr_t client_addrs[32]; #if ISC_NETMGR_TRACE void