$NetBSD: patch-ac,v 1.14 2003/05/06 19:52:44 grant Exp $ --- include/btorder.h.orig Mon Dec 10 10:54:27 2001 +++ include/btorder.h @@ -28,6 +28,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*/ @@ -108,7 +111,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