Fix stats counters to be 32 bits on ILP32

This commit is contained in:
christos 2020-05-25 15:13:25 +00:00
parent 05de94e1a2
commit 8e03e9f467
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: client.c,v 1.9 2020/05/24 19:46:29 christos Exp $ */
/* $NetBSD: client.c,v 1.10 2020/05/25 15:13:25 christos Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@ -128,7 +128,7 @@
* Number of tasks to be used by clients - those are used only when recursing
*/
#if defined(_WIN32) && !defined(_WIN64)
#if (defined(_WIN32) && !defined(_WIN64)) || !defined(_LP64)
LIBNS_EXTERNAL_DATA atomic_uint_fast32_t ns_client_requests;
#else /* if defined(_WIN32) && !defined(_WIN64) */
LIBNS_EXTERNAL_DATA atomic_uint_fast64_t ns_client_requests;

View File

@ -1,4 +1,4 @@
/* $NetBSD: client.h,v 1.8 2020/05/24 19:46:29 christos Exp $ */
/* $NetBSD: client.h,v 1.9 2020/05/25 15:13:25 christos Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@ -273,7 +273,7 @@ struct ns_client {
*/
#define NS_FAILCACHE_CD 0x01
#if defined(_WIN32) && !defined(_WIN64)
#if (defined(_WIN32) && !defined(_WIN64)) || !defined(_LP64)
LIBNS_EXTERNAL_DATA extern atomic_uint_fast32_t ns_client_requests;
#else /* if defined(_WIN32) && !defined(_WIN64) */
LIBNS_EXTERNAL_DATA extern atomic_uint_fast64_t ns_client_requests;