diff options
Diffstat (limited to 'src/stdio/pclose.c')
| -rw-r--r-- | src/stdio/pclose.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stdio/pclose.c b/src/stdio/pclose.c index 7a70bf9f..aff03b73 100644 --- a/src/stdio/pclose.c +++ b/src/stdio/pclose.c @@ -1,5 +1,7 @@ #include <stdio.h> +#include "sys/types.h" #include "sys/wait.h" +#include "nonstd/io.h" int pclose(FILE * stream) { @@ -11,7 +13,7 @@ int pclose(FILE * stream) fclose(stream); - waitpid(pid, &status, 0); + waitpid(child, &status, 0); return status; } |
