radare2: Fix i686 build

This commit is contained in:
Fredrik Fornwall 2020-01-02 21:03:08 +01:00
parent ff0328798e
commit 8360c13834
2 changed files with 16 additions and 1 deletions

View File

@ -10,7 +10,7 @@ TERMUX_PKG_BREAKS="radare2-dev"
TERMUX_PKG_REPLACES="radare2-dev"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-compiler=termux-host"
TERMUX_PKG_BLACKLISTED_ARCHES="i686, x86_64"
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
termux_step_pre_configure() {
# Certain packages are not safe to build on device because their

View File

@ -0,0 +1,15 @@
diff -u -r ../radare2-4.1.1/libr/debug/p/native/linux/linux_debug.c ./libr/debug/p/native/linux/linux_debug.c
--- ../radare2-4.1.1/libr/debug/p/native/linux/linux_debug.c 2019-12-20 12:22:09.000000000 +0000
+++ ./libr/debug/p/native/linux/linux_debug.c 2020-01-01 22:43:18.537610000 +0000
@@ -40,7 +40,11 @@
#endif
} else {
#include "reg/linux-x64.h"
+#ifdef __ANDROID__
+#include <sys/ucontext.h>
+#else
#include <bits/sigcontext.h>
+#endif
}
#elif __powerpc__
if (dbg->bits & R_SYS_BITS_32) {