summaryrefslogtreecommitdiff
path: root/net/speakfreely/patches/patch-ah
blob: 7aea43d8852a28a9be86546094928339dc99d384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$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>