PPSSPP: fix build

This commit is contained in:
Gerasim Troeglazov
2021-02-28 21:10:40 +10:00
parent 7d5dc625d9
commit 4e2ba368f4
2 changed files with 25 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
From 52c8a1df7ba4f70c4d72664d058efe6fba54106c Mon Sep 17 00:00:00 2001
From 046b349aca3f40dca346a7aae5a09c1752448ac0 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 28 Feb 2021 20:30:33 +1000
Subject: Fixes for Haiku
@@ -310,3 +310,26 @@ index 16b4adb..92c723d 100644
--
2.30.0
From 6a00c49d19d6bef87e6a201528a37bb1cba6ac0f Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 28 Feb 2021 21:05:19 +1000
Subject: Disable mlock for haiku
diff --git a/Core/Instance.cpp b/Core/Instance.cpp
index 4353641..d611078 100644
--- a/Core/Instance.cpp
+++ b/Core/Instance.cpp
@@ -79,7 +79,7 @@ static bool UpdateInstanceCounter(void (*callback)(volatile InstanceInfo *)) {
UnmapViewOfFile(buf);
return result;
-#elif PPSSPP_PLATFORM(ANDROID) || defined(__LIBRETRO__)
+#elif PPSSPP_PLATFORM(ANDROID) || defined(__LIBRETRO__) || defined(__HAIKU__)
// TODO: replace shm_open & shm_unlink with ashmem or android-shmem
return false;
#else
--
2.30.0