[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Config.h and pid redefinition...
From: |
Alberto Santini |
Subject: |
Re: Config.h and pid redefinition... |
Date: |
Sun, 16 Dec 2007 11:08:41 +0100 |
Hello Eli.
On Dec 16, 2007 5:17 AM, Eli Zaretskii <address@hidden> wrote:
> > Date: Sat, 15 Dec 2007 18:23:55 +0100
> > From: "Alberto Santini" <address@hidden>
> > Cc: address@hidden
> >
> > > Thanks. Could you please try the patch below, and see if it fixes
> > > your original problem?
> >
> > No, it doesn't work, because config.h (see make.h, for instance) is
> > loaded before sys/types.h
>
> Yes, that was silly of me. How about the patch below, then?
>
I confirm you the patch works fine.
> 2007-12-15 Eli Zaretskii <address@hidden>
>
> * config.h.W32: Include sys/types.h.
> [!_PID_T_] (pid_t): Define only if not already defined.
>
> --- config.h.W32~0 2006-04-01 12:42:38.000000000 +0300
> +++ config.h.W32 2007-12-16 06:13:06.035500000 +0200
> @@ -405,11 +405,16 @@
> /* Define to empty if `const' does not conform to ANSI C. */
> /* #undef const */
>
> +#include <sys/types.h>
>
> +
> /* Define to `int' if <sys/types.h> doesn't define. */
> #define gid_t int
>
> /* Define to `int' if <sys/types.h> does not define. */
> +/* GCC 4.x reportedly defines pid_t. */
> +#ifndef _PID_T_
> #define pid_t int
> +#endif
>
> /* Define to `int' if <sys/types.h> doesn't define. */
> #define uid_t int
>
Thanks for your time,
Alberto.
- Config.h and pid redefinition..., Alberto Santini, 2007/12/08
- Re: Config.h and pid redefinition..., Eli Zaretskii, 2007/12/08
- Message not available
- Re: Config.h and pid redefinition..., Eli Zaretskii, 2007/12/15
- Re: Config.h and pid redefinition..., Alberto Santini, 2007/12/15
- Re: Config.h and pid redefinition..., Eli Zaretskii, 2007/12/15
- Re: Config.h and pid redefinition...,
Alberto Santini <=
- Re: Config.h and pid redefinition..., Eli Zaretskii, 2007/12/16
- Re: Config.h and pid redefinition..., Eli Zaretskii, 2007/12/22