$NetBSD: patch-ah,v 1.1 2000/01/17 16:02:34 jlam Exp $ --- speakfree.h.orig Tue Sep 14 08:17:32 1999 +++ speakfree.h Sat Jan 15 11:59:59 2000 @@ -20,6 +20,18 @@ #define _BSD_SIGNALS #endif +/* + * NetBSD is cross-platform, so determine endianness from machine-specific + * header files. + */ +#if defined(__NetBSD__) +#include <sys/types.h> /* needed for NetBSD <= 1.4.x */ +#include <machine/endian.h> +#if BYTE_ORDER == LITTLE_ENDIAN +#define M_LITTLE_ENDIAN +#endif +#endif /* __NetBSD__ */ + #include <stdio.h> #include <stdlib.h> #include <fcntl.h>