diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-12-03 09:04:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 09:04:19 +0300 |
commit | 6f6c3286b666d61dfaac077c5123f70a2e5033f3 (patch) | |
tree | 1e785fec38283e8311a2e2cfee94e4eec86c693d | |
parent | 124f1157141b323b6de883b45021170f1fe70539 (diff) |
[runtime] Avoid checking for hardened runtime on ios, its not needed, and it causes alerts because of PROT_WRITE|PROT_EXEC. (#20623)mono-6.12.0.112
Co-authored-by: Zoltan Varga <vargaz@gmail.com>
-rw-r--r-- | mono/utils/mono-mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/utils/mono-mmap.c b/mono/utils/mono-mmap.c index 251e637ef6d..6f9e2c9629c 100644 --- a/mono/utils/mono-mmap.c +++ b/mono/utils/mono-mmap.c @@ -288,7 +288,7 @@ mono_valloc (void *addr, size_t length, int flags, MonoMemAccountType type) return NULL; #endif -#if defined(__APPLE__) && defined(MAP_JIT) +#if defined(__APPLE__) && defined(MAP_JIT) && defined(TARGET_OSX) if (get_darwin_version () >= DARWIN_VERSION_MOJAVE) { /* Check for hardened runtime */ static int is_hardened_runtime; |