Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: src/sys/sys/rb.h causes problem?
On Wed, Jun 04, 2008 at 11:11:39PM +0200, Kurt Schreiner wrote:
> On Wed, Jun 04, 2008 at 06:14:35PM +0200, Patrick Welche wrote:
> > On Wed, Jun 04, 2008 at 09:08:04AM -0700, Paul Goyette wrote:
> > >> /u/NetBSD/src/sys/sys/rb.h:164: error: expected '=', ',', ';', 'asm' or
> > >> '__attribute__' before 'rb_tree_insert_node'
> > >> /u/NetBSD/src/sys/sys/rb.h:164: error: expected '=', ',', ';', 'asm' or
> > >> '__attribute__' before 'rb_tree_insert_node'
> >
> > Yes, what is odd is that rb.h includes sys/types.h which does
> >
> > #if defined(_KERNEL) || defined(_STANDALONE)
> > #define bool _Bool
> >
> > Ah: when compiling libc, _KERNEL isn't defined...
> >
> > possibly #else #include <stdbool.h> instead?
> Ok, the #include was fixed by matt@, but to get src/sys/sys/rb.h
> compiled, the patch below gets me there (if it's TRT is another
> question ;-)
Bitfields must be signed ints, IIRC. I'll have a look.
Andrew
Home |
Main Index |
Thread Index |
Old Index