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 <stdatomic.h> 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 <stdatomic.h> header is present.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
|
||||
#if HAVE_STDATOMIC_H
|
||||
#include <stdatomic.h>
|
||||
#else
|
||||
#include <isc/stdatomic.h>
|
||||
|
||||
Reference in New Issue
Block a user