Subject: Re: kqemu: driver(9)/filedesc(9) questions
To: Juan RP <juan@xtrarom.org>
From: Oliver Gould <ogould@olix0r.net>
List: tech-kern
Date: 04/16/2007 21:46:11
--uQr8t48UFsdbeI+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2007-04-17 02:34 -0500, Juan RP wrote:
> On Tue, 17 Apr 2007 02:30:36 +0200
> Juan RP <juan@xtrarom.org> wrote:
>=20
> > On Mon, 16 Apr 2007 20:27:06 -0400
> > Oliver Gould <ogould@olix0r.net> wrote:
> You are including both sys/endian.h and sys/bswap.h or
> machine/bswap.h?
> > > In file included from /usr/include/sys/endian.h:107,
> > > from /usr/include/machine/endian.h:3,
> > > [...]
> > > In file included from /usr/include/machine/bswap.h:9,
> > > from /usr/include/sys/endian.h:107,
> > > from /usr/include/machine/endian.h:3,
> > > [...]
> > > /usr/include/sys/bswap.h:70:1: error: this is the location of the
> > > previous definition
> > > =20
> > > Any easy way around this?
No- I am only including sys/buf.h. It seems that my sys/bswap.h
includes machines/bswap.h *and* defines bswap16.
/usr/include/machine/bswap.h:
/* $NetBSD: bswap.h,v 1.2 1999/08/21 05:39:52 simonb Exp $ */
/usr/include/sys/bswap.h:
/* $NetBSD: bswap.h,v 1.12 2006/05/22 16:28:27 drochner Exp $ */
Perhaps I'm missing a define? _KERNEL, or something similar?
- Oliver
--uQr8t48UFsdbeI+V
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
iQEVAwUBRiQm4/BcMTqzwkq9AQJFKAf+Ncrz/I44HMgiPpSMIXHR/imR/WLtP6X5
newlZOWXGeQTEykQsN8+yQlF039voYH7bTy+1Rf5RI4FxDx4s6y428jetyqxtf7Y
LwhgbkHq3w/WkJld8KVT/7FjT5qEEbacELELw/f6ixZEQ2y7l3qTOyj31GT7FACv
TBAzzrmcOTIAHpwlGhsLHmtL73RpJKDqbombqm9Zxg1bUz32O0XUYtG3EZtZOvgw
fzeh8+h1hm5uOLki4yFsZPHoYv34Vf1lqqjmVEgOG6PymvBsirxR+MzzORD8oEwI
xW1Ojqjui6jwWkzr1CE6Hq/+pnEOHMEchZ831Htysu/gsb7rYD7ZQg==
=Uc4B
-----END PGP SIGNATURE-----
--uQr8t48UFsdbeI+V--