diff --git a/rpcs3/util/vm_native.cpp b/rpcs3/util/vm_native.cpp index 76e721b791..c61708e7cd 100644 --- a/rpcs3/util/vm_native.cpp +++ b/rpcs3/util/vm_native.cpp @@ -686,7 +686,11 @@ namespace utils #else #ifdef __linux__ +#ifdef ANDROID + if constexpr (char c = '?'; true) +#else if (const char c = fs::file("/proc/sys/vm/overcommit_memory").read(); c == '0' || c == '1') +#endif { // Simply use memfd for overcommit memory m_file = ensure(::memfd_create_("", 0), FN(x >= 0));