diff options
Diffstat (limited to 'g10/exec.c')
-rw-r--r-- | g10/exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/exec.c b/g10/exec.c index 09fe67ca4..b5e5db463 100644 --- a/g10/exec.c +++ b/g10/exec.c @@ -24,7 +24,9 @@ #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> +#ifndef HAVE_DOSISH_SYSTEM #include <sys/wait.h> +#endif #include <fcntl.h> #include <unistd.h> #include <string.h> @@ -380,7 +382,9 @@ int exec_read(struct exec_info *info) goto fail; } + #ifndef HAVE_DOSISH_SYSTEM info->progreturn=WEXITSTATUS(info->progreturn); + #endif if(info->progreturn==127) { |