diff --git a/stdlib/public/runtime/Exclusivity.cpp b/stdlib/public/runtime/Exclusivity.cpp index aa6993d29284f..c5dbbbd46763e 100644 --- a/stdlib/public/runtime/Exclusivity.cpp +++ b/stdlib/public/runtime/Exclusivity.cpp @@ -38,6 +38,8 @@ #elif _MSC_VER #include #define get_return_address() _ReturnAddress() +#elif defined(__wasi__) +#define get_return_address() ((void*) 0) #else #error missing implementation for get_return_address #define get_return_address() ((void*) 0)