$NetBSD: patch-ab,v 1.1.1.1 2007/10/20 15:32:11 noud4 Exp $ --- ftl_check.c.orig 2006-10-07 17:33:37.000000000 +0200 +++ ftl_check.c 2007-08-28 18:58:53.000000000 +0200 @@ -50,13 +50,18 @@ #include #include +#if __NetBSD__ +#include +#include +#else #include #include +#endif -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if _BYTE_ORDER == _LITTLE_ENDIAN # define TO_LE32(x) (x) # define TO_LE16(x) (x) -#elif __BYTE_ORDER == __BIG_ENDIAN +#elif _BYTE_ORDER == _BIG_ENDIAN # define TO_LE32(x) (bswap_32(x)) # define TO_LE16(x) (bswap_16(x)) #else