Re: Oops. Linux...

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Jon Peatfield
CC: exim-users, rembrandt-list, jp107
Tárgy: 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