]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Fix some other missing header inclusions
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 13 Oct 2019 13:37:33 +0000 (16:37 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 16 Oct 2019 08:01:21 +0000 (10:01 +0200)
It is worth saying here that we previously forgot to add the declarations for
wait3() and wait4() stubs.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/sys/uio.h
include/sys/wait.h
resource.c

index 3c821be76bb17f9b7621224661d18bfd6ccfe728..23862564d454f0143d6222c6c8a0849ff5e59f9d 100644 (file)
@@ -40,6 +40,8 @@
 extern "C" {
 #endif
 
+#include <sys/types.h>
+
 #define UIO_MAXIOV 1024
 
 struct iovec {
index 81189968544ab607b76dfe15ae04bd1eccb9cc37..b6b48d0c6496e9c89035dbf2531f5b62a66f3f36 100644 (file)
 #define __NEWLIB_GLUE__SYS_WAIT_H__
 
 #include_next <sys/wait.h>
+#include <sys/resource.h>
 
 #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
index 30d0028757ac974588532c2bdae7f220fe56687e..fe61ef3e216bf02774189540555e06a0fa2bf3fb 100644 (file)
@@ -36,6 +36,7 @@
  */
 
 #include <sys/resource.h>
+#include <uk/essentials.h>
 
 int getrlimit(int resource __unused, struct rlimit *rlim __unused)
 {