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

View File

@@ -5,7 +5,7 @@ Android or PC device."
HOMEPAGE="https://www.ppsspp.org/"
COPYRIGHT="2012-2021 PPSSPP Project"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/hrydgard/ppsspp/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0b70e4ae8000b0f8b2ef5e6110d406f6d2cbf8e597c1f594a643b10ce940ee6c"
SOURCE_FILENAME="ppsspp-$portVersion.tar.gz"