fex: update to FEX-2210

This commit is contained in:
termux-pacman-bot
2022-10-13 23:10:07 +00:00
parent 8b31a4d04a
commit 10c63ad75e
2 changed files with 1 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://fex-emu.com/
TERMUX_PKG_DESCRIPTION="Fast x86 emulation frontend"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2209
TERMUX_PKG_VERSION=2210
TERMUX_PKG_SRCURL=https://github.com/FEX-Emu/FEX.git
TERMUX_PKG_GIT_BRANCH=FEX-${TERMUX_PKG_VERSION}
TERMUX_PKG_DEPENDS="libandroid-shmem, libc++"

View File

@@ -1,27 +0,0 @@
diff --git a/Source/Tests/VDSO_Emulation.cpp b/Source/Tests/VDSO_Emulation.cpp
index d03cfa4b6..cb12a352a 100644
--- a/Source/Tests/VDSO_Emulation.cpp
+++ b/Source/Tests/VDSO_Emulation.cpp
@@ -12,6 +12,22 @@
#include <sys/time.h>
#include <unistd.h>
+#ifdef TERMUX_BUILD
+// getcpu doesn't exist in termux. Expectation is to use sched_getcpu.
+#include <sched.h>
+int getcpu(uint32_t *cpu, uint32_t *node) {
+ if (cpu) {
+ *cpu = ::sched_getcpu();
+ }
+ if (node) {
+ // No node information
+ *node = 0;
+ }
+
+ return 0;
+}
+#endif
+
namespace FEX::VDSO {
using TimeType = decltype(::time)*;
using GetTimeOfDayType = decltype(::gettimeofday)*;