Subject: Re: kqemu: driver(9)/filedesc(9) questions
To: Oliver Gould <ogould@olix0r.net>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 04/17/2007 02:34:04
On Tue, 17 Apr 2007 02:30:36 +0200
Juan RP <juan@xtrarom.org> wrote:
> On Mon, 16 Apr 2007 20:27:06 -0400
> Oliver Gould <ogould@olix0r.net> wrote:
>
> > o Also, I'm running into some silly compile errors- particularly,
> > conflicts between /usr/include/sys and /usr/include/machine. I
> > would imagine that this is something obvious and avoidable:
> >
> > In file included from /usr/include/sys/endian.h:107,
> > from /usr/include/machine/endian.h:3,
> > from /usr/include/sys/types.h:98,
> > [...]
> > from /usr/include/sys/buf.h:79,
> > from kqemu-netbsd.c:9:
> > /usr/include/machine/bswap.h:14:1: error: "bswap16" redefined
> > In file included from /usr/include/machine/bswap.h:9,
> > from /usr/include/sys/endian.h:107,
> > from /usr/include/machine/endian.h:3,
> > from /usr/include/sys/types.h:98,
> > [...]
> > from /usr/include/sys/buf.h:79,
> > from kqemu-netbsd.c:9:
> > /usr/include/sys/bswap.h:70:1: error: this is the location of the
> > previous definition
> >
> > Any easy way around this?
>
> Perhaps with:
>
> #ifndef bswap16
> #define bswap16 ...
> #endif
Ah... ignore what I said. You are including both sys/endian.h
and sys/bswap.h or machine/bswap.h?
sys/endian.h includes machine/bswap.h.
--
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish