This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fixincl.c missing prototypes
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Marcin Dalecki <martin at dalecki dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 31 Jan 2005 13:41:47 -0800
- Subject: Re: [PATCH] fixincl.c missing prototypes
- References: <ddee4e105f051a30a218e06351cb0db6@dalecki.de>
Marcin Dalecki <martin@dalecki.de> writes:
> This is fixing some missing prototypes in the file mentioned in subject.
>
> diff -urN gcc-4.0-20050123/fixincludes/fixincl.c
> gcc-4.0-20050123-new/fixincludes/fixincl.c
> --- gcc-4.0-20050123/fixincludes/fixincl.c Wed Nov 17 06:06:41 2004
> +++ gcc-4.0-20050123-new/fixincludes/fixincl.c Wed Jan 26 07:01:56 2005
> @@ -30,6 +30,9 @@
> #define BAD_ADDR ((void*)-1)
> #endif
>
> +#include <sys/types.h>
> +#include <sys/wait.h>
> +
> #ifndef SEPARATE_FIX_PROC
> #include "server.h"
> #endif
I believe you need to wrap these with HAVE_SYS_TYPES_H and
HAVE_SYS_WAIT_H, and then use autoconf to get those defined.