Re: Oops. Linux...

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Jon Peatfield
CC: exim-users, rembrandt-list, jp107
Asunto: Re: Oops. Linux...
On Thu, 12 Sep 1996, Jon Peatfield wrote:

> The RedHat package of db has a patched version of db.h which changes the
> include of <sys/cdefs.h> to <features.h> which has (I believe) Linux specific
> bits in it, and includes <sys/cdefs.h> at the end.
>
> But the <features.h> is protected against multiple inclusions, and it will
> have already ben included by something else.
>
> By undef'ing the __P you are breaking the trust it has that the effects if the
> include have already been done.
>
> The same would be true on systems with an intact db.h but that protect against
> multiple inclusion of <sys/cdefs.h>. You will fine other systems which break
> because of this.


I've thought of a different kludge that should work in all cases. I'll
get it tested on some Linux systems. The kludge is "if __P is not
defined before including <ident.h> then undefine it afterwards".

--
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714