Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mpl/bind/dist/lib/isc use 32 bit counters on 32 bit...



details:   https://anonhg.NetBSD.org/src/rev/0dcb0ab42e78
branches:  trunk
changeset: 447403:0dcb0ab42e78
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 09 20:39:28 2019 +0000

description:
use 32 bit counters on 32 bit platforms because we don't yet have 64 bit
atomics for them.

diffstat:

 external/mpl/bind/dist/lib/isc/stats.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 71819bc36c3a -r 0dcb0ab42e78 external/mpl/bind/dist/lib/isc/stats.c
--- a/external/mpl/bind/dist/lib/isc/stats.c    Wed Jan 09 19:43:37 2019 +0000
+++ b/external/mpl/bind/dist/lib/isc/stats.c    Wed Jan 09 20:39:28 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stats.c,v 1.3 2019/01/09 16:55:14 christos Exp $       */
+/*     $NetBSD: stats.c,v 1.4 2019/01/09 20:39:28 christos Exp $       */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -32,7 +32,11 @@
 #define ISC_STATS_MAGIC                        ISC_MAGIC('S', 't', 'a', 't')
 #define ISC_STATS_VALID(x)             ISC_MAGIC_VALID(x, ISC_STATS_MAGIC)
 
+#ifndef _LP64
+typedef atomic_int_fast32_t isc_stat_t;
+#else
 typedef atomic_int_fast64_t isc_stat_t;
+#endif
 
 struct isc_stats {
        /*% Unlocked */



Home | Main Index | Thread Index | Old Index