Subject: Re: kern/12298: fairly impressive cross-compilation bogon in
To: None <cgd@netbsd.org>
From: Todd Vierling <tv@wasabisystems.com>
List: netbsd-bugs
Date: 02/28/2001 17:20:23
On Tue, 27 Feb 2001 cgd@netbsd.org wrote:

: #ifdef _STANDALONE
: #include "/usr/include/arpa/tftp.h" /* XXX */
: #else
: #include <arpa/tftp.h>
: #endif
:
: given that the code is typically compiled with _STANDALONE, that
: pulls in the host's /usr/include/arpa/tftp.h.

: unknown what the right solution is.  can't just include <arpa/tftp.h>,
: even if the cross-compiler is built properly (i.e., with complete
: NetBSD includes, etc.), because the code is typically compiled with
: -nostdinc.

The problem here is that relevant protocol includes are in src/include
and not src/sys.  If there's kernel/standalone code that uses definitions
from <arpa/*>, it's probably better to move the arpa/*.h files into src/sys.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --  http://www.wasabisystems.com/