commit 619e7fcc9c90fe318d00d6e168e554f7b160e0ec
parent f3a33fdc5300a516682296018c580a13dc4af821
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue, 30 Jun 2020 17:22:18 +0200
add missing includes for NULL
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/trywaitp.c b/trywaitp.c
@@ -1,7 +1,8 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <stddef.h>
int main(void)
{
- return waitpid(0,0,0);
+ return waitpid(0,NULL,0);
}
diff --git a/wait_nohang.c b/wait_nohang.c
@@ -1,5 +1,6 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <stddef.h>
#include "haswaitp.h"
int wait_nohang(wstat) int *wstat;