Subject: Re: kern/12298: fairly impressive cross-compilation bogon in
To: Bill Sommerfeld <>
From: Todd Vierling <>
List: netbsd-bugs
Date: 02/28/2001 20:47:31
On Wed, 28 Feb 2001, Bill Sommerfeld wrote:

: > This is becoming more common as embedded applications are taking shape.
: > src/include should only be needed on systems that will have a userland;
: > anything needed by kernel and standalone code should be self-contained
: > within syssrc/sys.
: If that's the case, then we may need to copy arpa/tftp.h into the
: stand headers...

You'll note that some other libsa things depend on <sys/*> even when
_STANDALONE, so this header in question doesn't need to be in

The solution is *really* simple:  Move all files which are not libc-tied
from src/include/arpa to src/sys/arpa -- should be everything but
"arpa/inet.h".  Then add a based Makefile to install the

The only reason I won't do this right now is because someone's probably
likely to say "don't do that", since this proposal creates two `arpa'
directories.  But as far as I'm concerned, the non-"arpa/inet.h" files only
describe protocol structures and constants, and thus are useful to kernel
and standalone code.  "arpa/inet.h", on the other hand, is just a C library
function decl header.

-- Todd Vierling <>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --