diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-23 15:22:33 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-23 15:22:33 -0500 |
| commit | 1221e834f49adb91eb0b7443a57274f2611459c2 (patch) | |
| tree | 7afb7ed5a203ddefd5559005af7ec61d801b972e /src/stdio/pclose.c | |
| parent | f546f27d1fdb8d2663b2fbb130f53ee32cac90b0 (diff) | |
compile in current environment
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; } |
