xorriso: wait3() patch for build w/ newer ndk

Cr: 26b64ac3da/patches/25.patch
This commit is contained in:
anon 2022-09-21 16:45:56 +08:00 committed by Uchiha Kakashi
parent 96f3336ffe
commit 2181f92619
2 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Tool for creating ISO files"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1:1.5.4
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://www.gnu.org/software/xorriso/xorriso-${TERMUX_PKG_VERSION:2}.tar.gz
TERMUX_PKG_SHA256=3ac155f0ca53e8dbeefacc7f32205a98f4f27d2d348de39ee0183ba8a4c9e392
TERMUX_PKG_DEPENDS="libiconv, libandroid-support, readline, libbz2, zlib"

View File

@ -0,0 +1,14 @@
--- a/xorriso/parse_exec.c 2022-09-21 17:03:37.540907532 +0800
+++ b/xorriso/parse_exec.c 2022-09-21 17:03:02.380907545 +0800
@@ -39,6 +39,11 @@
#include <pthread.h>
#endif
+/* Wrap wait3() to wait4() for libc implementations without (e.g. Bionic on ANDROID >= 21) */
+#if __ANDROID_API__ >= 21
+static pid_t wait3(int* status, int options, struct rusage* rusage) { return wait4(-1, status, options, rusage); }
+#endif
+
/* @param flag bit0= do not warn of wildcards
bit1= these are disk_paths
*/