From 701eb26f97f97b3417f5600565cda2db8046599e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 22 Aug 2023 14:23:05 +0200 Subject: [PATCH] Workaround faulty stdatomic.h header detection on Oracle Linux 7 Oracle Linux 7 sets __STDC_VERSION__ to 201112L, but doesn't define __STDC_NO_ATOMICS__, so we try to include without the header present in the system. Since we are already detecting the header in the autoconf, use the HAVE_STDATOMIC_H for more reliable detecting whether header is present. --- lib/isc/include/isc/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/include/isc/atomic.h b/lib/isc/include/isc/atomic.h index 5edb0957f0..5a415bc15d 100644 --- a/lib/isc/include/isc/atomic.h +++ b/lib/isc/include/isc/atomic.h @@ -13,7 +13,7 @@ #pragma once -#if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__) +#if HAVE_STDATOMIC_H #include #else #include