Subject: Re: compiling current on amd64 failed
To: Klaus Klein <kleink@mibh.de>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 03/09/2005 16:23:07
On Wed, Mar 09, 2005 at 05:02:43PM +0100, Klaus Klein wrote:
> On Wednesday, 9. March 2005 16:15, Patrick Welche wrote:
>
> > Does this work? (Still surprised that uint64_t is OK, but uint32_t isn't..)
>
> > Index: socket.h
> > ===================================================================
> > RCS file: /cvsroot/src/sys/sys/socket.h,v
> > retrieving revision 1.73
> > diff -u -r1.73 socket.h
> > --- socket.h 9 Mar 2005 05:07:19 -0000 1.73
> > +++ socket.h 9 Mar 2005 15:12:35 -0000
> > @@ -73,6 +73,7 @@
> > * Data types.
> > */
> > #include <sys/ansi.h>
> > +#include <sys/types.h>
> >
> > #ifndef sa_family_t
> > typedef __sa_family_t sa_family_t;
> >
> >
>
> Pulling in <sys/types.h> adds namespace pollution which is not desired
> for this header. This is the reason why we switched to using __uint64_t
> etc. in there.
The problem is that you will actually find uint64_t, int32_t and
uint32_t in there.. Maybe you would like to change them to
__uint64_t, __int32_t and __uint32_t ?
Cheers,
Patrick