Subject: Re: kqemu: driver(9)/filedesc(9) questions
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 04/17/2007 04:01:22
On Mon, 16 Apr 2007 21:46:11 -0400
Oliver Gould <ogould@olix0r.net> wrote:

> 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?

Is this code defining _XOPEN_SOURCE? perhaps that's the problem.

Because sys/endian.h includes machine/swap.h when _XOPEN_SOURCE or
_NETBSD_SOURCE is defined.

-- 
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish