$NetBSD: patch-ac,v 1.4 2004/05/29 08:05:08 dillo Exp $ --- scsilib/include/btorder.h.orig 2004-02-10 00:34:00.000000000 +0100 +++ scsilib/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