From b845e2ede456fa7231f918f74debbedd61b68d36 Mon Sep 17 00:00:00 2001 From: James Ring Date: Thu, 15 Aug 2024 15:56:49 -0700 Subject: [PATCH] Add missing headers in bh_atomic.h and aot_llvm_extra.cpp (#3715) --- core/iwasm/compilation/aot_llvm_extra.cpp | 3 +++ core/shared/utils/bh_atomic.h | 1 + 2 files changed, 4 insertions(+) diff --git a/core/iwasm/compilation/aot_llvm_extra.cpp b/core/iwasm/compilation/aot_llvm_extra.cpp index fdd5517b..fc0ece06 100644 --- a/core/iwasm/compilation/aot_llvm_extra.cpp +++ b/core/iwasm/compilation/aot_llvm_extra.cpp @@ -41,6 +41,9 @@ #include #include #include +#if LLVM_VERSION_MAJOR >= 17 +#include +#endif #include #include #include diff --git a/core/shared/utils/bh_atomic.h b/core/shared/utils/bh_atomic.h index 4f7d9bc8..5148497f 100644 --- a/core/shared/utils/bh_atomic.h +++ b/core/shared/utils/bh_atomic.h @@ -6,6 +6,7 @@ #ifndef _BH_ATOMIC_H #define _BH_ATOMIC_H +#include "bh_platform.h" #include "gnuc.h" #ifdef __cplusplus