mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
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:
parent
9424f5a5b1
commit
701eb26f97
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue