termux-packages/ndk_patches_unified/sys-wait.h.patch
Fredrik Fornwall 88695dba79 Add start of unified headers transition
EXPERIMENTAL STATUS!

To try things out: Define TERMUX_UNIFIED_HEADERS=1 and build to
use the new unified headers.

This causes ndk_patches_unified/ to be used to patch the NDK header
files instead of ndk_patches/.
2017-06-18 20:57:16 +02:00

14 lines
709 B
Diff

diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/wait.h ./usr/include/sys/wait.h
--- /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/wait.h 2017-06-07 01:07:52.000000000 +0200
+++ ./usr/include/sys/wait.h 2017-06-18 02:11:22.268075841 +0200
@@ -57,6 +57,9 @@
// Implemented as a static inline before 18.
#endif
+/* Termux addition: Add wait3() declaration used by busybox. Available in libc for 32-bit only. */
+static pid_t wait3(int* status, int options, struct rusage* rusage) { return wait4(-1, status, options, rusage); }
+
/* Posix states that idtype_t should be an enumeration type, but
* the kernel headers define P_ALL, P_PID and P_PGID as constant macros
* instead.