[runtime] Avoid checking for hardened runtime on ios, its not needed, and it causes...
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 3 Dec 2020 13:05:25 +0000 (08:05 -0500)
committerGitHub <noreply@github.com>
Thu, 3 Dec 2020 13:05:25 +0000 (14:05 +0100)
Co-authored-by: vargaz <vargaz@users.noreply.github.com>
src/mono/mono/utils/mono-mmap.c

index aabd711..2484163 100644 (file)
@@ -289,7 +289,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;