diff --git a/gcc/fixinc/server.c b/gcc/fixinc/server.c index 06fa26ac6a6..1eacda78f25 100644 --- a/gcc/fixinc/server.c +++ b/gcc/fixinc/server.c @@ -83,7 +83,7 @@ # define volatile #endif -STATIC volatile bool read_pipe_timeout; +STATIC volatile t_bool read_pipe_timeout; static t_pchar def_args[] = { (char *) NULL, (char *) NULL }; diff --git a/gcc/fixinc/server.h b/gcc/fixinc/server.h index f270f36df36..12ae5afb576 100644 --- a/gcc/fixinc/server.h +++ b/gcc/fixinc/server.h @@ -72,17 +72,22 @@ typedef struct typedef char *t_pchar; +#ifndef NOPROCESS #define NOPROCESS ((pid_t) -1) #define NULLPROCESS ((pid_t)0) #define EXIT_PANIC 99 +#ifndef HAVE_T_BOOL_ENUM +#define HAVE_T_BOOL_ENUM typedef enum { BOOL_FALSE, BOOL_TRUE -} bool; +} t_bool; +#endif #define _P_(p) () +#endif char *run_shell _P_ (( const char *pzCmd)); pid_t proc2_fopen _P_ (( t_pf_pair * p_pair, t_pchar * pp_args));