$NetBSD: patch-ac,v 1.2 2006/02/04 12:05:17 wiz Exp $ --- include/btorder.h.orig 2003-06-15 21:41:22.000000000 +0000 +++ include/btorder.h @@ -27,6 +27,9 @@ #include /* try to load isa_defs.h on Solaris */ #define _INCL_SYS_TYPES_H #endif +#ifdef __NetBSD__ +#include +#endif #ifndef _MCONFIG_H #include /* load bit/byte-oder from xmconfig.h*/ @@ -107,7 +110,7 @@ error Only one of _BIT_FIELDS_LTOH or _ # if defined(__ppc__) || defined(ppc) || defined(__ppc) || \ defined(__PPC) || defined(powerpc) || defined(__powerpc__) -# if defined(__BIG_ENDIAN__) +# if defined(__BIG_ENDIAN__) || BYTE_ORDER == BIG_ENDIAN # define _BIT_FIELDS_HTOL # else # define _BIT_FIELDS_LTOH