Merge from vendor branch TNF:
[pkgsrc.git] / net / speakfreely / patches / patch-ah
1 $NetBSD$
2
3 --- speakfree.h.orig    Tue Sep 14 08:17:32 1999
4 +++ speakfree.h Sat Jan 15 11:59:59 2000
5 @@ -20,6 +20,18 @@
6  #define _BSD_SIGNALS
7  #endif
8  
9 +/*
10 + * NetBSD is cross-platform, so determine endianness from machine-specific
11 + * header files.
12 + */
13 +#if defined(__NetBSD__)
14 +#include <sys/types.h>         /* needed for NetBSD <= 1.4.x */
15 +#include <machine/endian.h>
16 +#if BYTE_ORDER == LITTLE_ENDIAN
17 +#define M_LITTLE_ENDIAN
18 +#endif
19 +#endif /* __NetBSD__ */
20 +
21  #include <stdio.h>
22  #include <stdlib.h>
23  #include <fcntl.h>