diff --git a/CHANGELOG.md b/CHANGELOG.md index 15931110339..c7162036553 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ * Asynchronous writes did not work with queue-confined Realms (since v11.8.0). * Releasing all references to a Realm while an asynchronous write was in progress would sometimes result in use-after-frees (since v11.8.0). * Throwing exceptions from asynchronous write callbacks would result in crashes or the Realm being in an invalid state (since v11.8.0). +* Fix an error when compiling a watchOS Simulator target not supporting Thread-local storage ([#7623](https://github.com/realm/realm-swift/issues/7623), since v11.7.0) ### Breaking changes * Renamed SubscriptionSet::State::Superceded -> Superseded to correct typo. diff --git a/src/realm/impl/simulated_failure.cpp b/src/realm/impl/simulated_failure.cpp index a15a3704f07..4cac2e90323 100644 --- a/src/realm/impl/simulated_failure.cpp +++ b/src/realm/impl/simulated_failure.cpp @@ -168,7 +168,7 @@ bool SimulatedFailure::do_check_trigger(FailureType failure_type) noexcept return false; } -#if REALM_ARCHITECTURE_X86_32 && REALM_IOS +#if (REALM_ARCHITECTURE_X86_32 && REALM_IOS) || (REALM_ARCHITECTURE_X86_64 && REALM_WATCHOS) bool (*s_mmap_predicate)(size_t); #else thread_local bool (*s_mmap_predicate)(size_t);