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