mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-10 12:53:27 +00:00
fex: update to FEX-2210
This commit is contained in:
@@ -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++"
|
||||
|
||||
@@ -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)*;
|
||||
Reference in New Issue
Block a user