Skip to content

Commit

Permalink
Merge pull request #5102 from realm/andrew/ios_debug
Browse files Browse the repository at this point in the history
Fix issue compiling in debug mode for iOS.
  • Loading branch information
takameyer authored Dec 10, 2021
2 parents 125a084 + 65bd49a commit 11ab17d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-----------

### Internals
* None.
* Fix issue compiling in debug mode for iOS.

----------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions src/realm/impl/simulated_failure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ bool SimulatedFailure::do_check_trigger(FailureType failure_type) noexcept
return false;
}

#if REALM_ARCHITECTURE_X86_32 && REALM_IOS
bool (*s_mmap_predicate)(size_t);
#else
thread_local bool (*s_mmap_predicate)(size_t);
#endif // REALM_ARCHITECTURE_X86_32 && REALM_IOS

void SimulatedFailure::do_prime_mmap(bool (*predicate)(size_t))
{
Expand Down

0 comments on commit 11ab17d

Please sign in to comment.