]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix building on OpenBSD 7.8 with Clang 19.1.7
authorAram Sargsyan <aram@isc.org>
Tue, 11 Nov 2025 13:49:14 +0000 (13:49 +0000)
committerMark Andrews <marka@isc.org>
Thu, 20 Nov 2025 00:08:23 +0000 (11:08 +1100)
Add the OpenBSD and Clang combination to the existing kludge to
recognize size_t and uintXX_t types as same when using a generic.

lib/isc/include/isc/bit.h

index d2cd6d9e71dad8a0264eefaad5dc5b618ea75cac..a8b47e16bcee9d8cd016c2326eed3fdc43daadaf 100644 (file)
@@ -107,7 +107,7 @@ isc_rotate_right64(const uint64_t x, uint32_t n) {
        return (x >> n) | (x << (64 - n));
 }
 
-#if __APPLE_CC__
+#if __APPLE_CC__ || (defined(__OpenBSD__) && defined(__clang__))
 
 /*
  * Apple compiler doesn't recognize size_t and uintXX_t types as same,