termux-packages/packages/dash/wait3.patch
Henrik Grimler e4733f3504
dash: add wait3 implementation
Previously we patched sys/wait.h to add it, but patch was removed in
commit 3879280345 ("ndk-patches: remove wait3 patch from
sys/wait.h") since busybox (for which the patch was added) no longer
needs it.

Let's patch the packages that actually needs this instead of
ndk-headers, to keep track of which packages that need it.

Fixes https://github.com/termux/termux-packages/issues/9257.
2022-03-02 09:52:13 +01:00

16 lines
361 B
Diff

--- ./src/jobs.c.orig 2022-03-02 09:45:43.327156557 +0100
+++ ./src/jobs.c 2022-03-02 09:47:08.592008372 +0100
@@ -128,6 +128,12 @@
static void xtcsetpgrp(int, pid_t);
#endif
+STATIC pid_t
+wait3(int* status, int options, struct rusage* rusage)
+{
+ return wait4(-1, status, options, rusage);
+}
+
STATIC void
set_curjob(struct job *jp, unsigned mode)
{