From: Costin Lupu Date: Sun, 13 Oct 2019 13:37:33 +0000 (+0300) Subject: Fix some other missing header inclusions X-Git-Tag: RELEASE-0.4~25 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9d24f22a80b8d6754158bd801c475dde5dff72fc;p=unikraft%2Flibs%2Fnewlib.git Fix some other missing header inclusions It is worth saying here that we previously forgot to add the declarations for wait3() and wait4() stubs. Signed-off-by: Costin Lupu Reviewed-by: Felipe Huici --- diff --git a/include/sys/uio.h b/include/sys/uio.h index 3c821be..2386256 100644 --- a/include/sys/uio.h +++ b/include/sys/uio.h @@ -40,6 +40,8 @@ extern "C" { #endif +#include + #define UIO_MAXIOV 1024 struct iovec { diff --git a/include/sys/wait.h b/include/sys/wait.h index 8118996..b6b48d0 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -36,8 +36,12 @@ #define __NEWLIB_GLUE__SYS_WAIT_H__ #include_next +#include #define WCOREDUMP(w) (((w) & 0xff) == 0x80) #define WIFCONTINUED(w) (WIFSIGNALED(w) && WEXITSTATUS(w) == 18) +pid_t wait3(int *wstatus, int options, struct rusage *rusage); +pid_t wait4(pid_t pid, int *wstatus, int options, struct rusage *rusage); + #endif diff --git a/resource.c b/resource.c index 30d0028..fe61ef3 100644 --- a/resource.c +++ b/resource.c @@ -36,6 +36,7 @@ */ #include +#include int getrlimit(int resource __unused, struct rlimit *rlim __unused) {