Module Name: src Committed By: christos Date: Thu Feb 22 12:43:10 UTC 2024
Modified Files: src/external/mpl/bind/dist/lib/isc/include/isc: types.h Log Message: Use 32 bit counters on non _LP64 machines because they don't have 64 bit atomics. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 \ src/external/mpl/bind/dist/lib/isc/include/isc/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/mpl/bind/dist/lib/isc/include/isc/types.h diff -u src/external/mpl/bind/dist/lib/isc/include/isc/types.h:1.11 src/external/mpl/bind/dist/lib/isc/include/isc/types.h:1.12 --- src/external/mpl/bind/dist/lib/isc/include/isc/types.h:1.11 Wed Feb 21 17:52:31 2024 +++ src/external/mpl/bind/dist/lib/isc/include/isc/types.h Thu Feb 22 07:43:10 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.11 2024/02/21 22:52:31 christos Exp $ */ +/* $NetBSD: types.h,v 1.12 2024/02/22 12:43:10 christos Exp $ */ /* * Copyright (C) Internet Systems Consortium, Inc. ("ISC") @@ -78,8 +78,13 @@ typedef struct isc_sockaddr isc_sockadd typedef ISC_LIST(isc_sockaddr_t) isc_sockaddrlist_t; /*%< Socket Address List * */ typedef struct isc_stats isc_stats_t; /*%< Statistics */ +#ifdef _LP64 typedef int_fast64_t isc_statscounter_t; typedef atomic_int_fast64_t isc_atomic_statscounter_t; +#else +typedef int_fast32_t isc_statscounter_t; +typedef atomic_int_fast32_t isc_atomic_statscounter_t; +#endif typedef struct isc_symtab isc_symtab_t; /*%< Symbol Table */ typedef struct isc_task isc_task_t; /*%< Task */ typedef ISC_LIST(isc_task_t) isc_tasklist_t; /*%< Task List */