diff options
Diffstat (limited to 'gcc/fixinc/procopen.c')
-rw-r--r-- | gcc/fixinc/procopen.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/fixinc/procopen.c b/gcc/fixinc/procopen.c index 28004eed8a7..086a21e18e4 100644 --- a/gcc/fixinc/procopen.c +++ b/gcc/fixinc/procopen.c @@ -46,17 +46,8 @@ * If you do not wish that, delete this exception notice. */ #include "auto-host.h" - -#include <sys/types.h> -#ifdef HAVE_FCNTL_H -#include <fcntl.h> -#endif -#include <errno.h> -#include <signal.h> -#include <stdlib.h> -#include <string.h> -#include <ctype.h> -#include <sys/param.h> +#include "gansidecl.h" +#include "system.h" #include "server.h" @@ -104,10 +95,12 @@ chain_open (stdin_fd, pp_args, p_child) t_pchar *pp_args; pid_t *p_child; { - t_fd_pair stdout_pair = {-1, -1}; + t_fd_pair stdout_pair; pid_t ch_id; char *pz_cmd; + stdout_pair.read_fd = stdout_pair.write_fd = -1; + /* * Create a pipe it will be the child process' stdout, * and the parent will read from it. |