Subject: tools/compat/compat_defs.h issues ...
To: None <tech-toolchain@NetBSD.org>
From: Luke Mewburn <lukem@NetBSD.org>
Date: 10/28/2003 22:18:54
On Tue, Oct 28, 2003 at 01:56:25PM +0300, Valeriy E. Ushakov wrote:
| On Tue, Oct 28, 2003 at 16:50:21 +1100, Luke Mewburn wrote:
| > On Mon, Oct 27, 2003 at 11:14:08PM -0600, James Chacon wrote:
| > | We provide that in nbcompat? The specific thing I was fixing here
| > | was tools/ lossage from hosting on non-NetBSD for cross building.
| > Yes, we do; look at tools/compat/compat_defs.h.
| > usr.sbin/installboot uses these macros and it cross builds fine.
| I think the config test for sys/endian.h is too coarse. I.e. a host
| that have sys/endian.h, but the one which doesn't provide all the
| atob* functions that ours does (e.g. FreeBSD) - will have build
| I have been doing
| export ac_cv_header_sys_endian_h=no
| in my build.sh wrapper for a long time (since I switched to FreeBSD
| 4.8 sometime in the summer), so that I just don't have to care.
Which specific macros is FreeBSD missing?
(Arguably the best thing to do may be to #ifndef check each macro rather
than just assuming <sys/endian.h> has it all ...)