summaryrefslogtreecommitdiff
path: root/net/speakfreely/patches/patch-af
blob: 751e2a9a2966bcd943ab2ad4fe59d85ff88254c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-af,v 1.1.1.1 1999/10/11 05:48:25 jlam Exp $

--- speakfree.h.orig	Tue Sep 14 08:17:32 1999
+++ speakfree.h	Mon Oct 11 01:38:35 1999
@@ -20,6 +20,17 @@
 #define _BSD_SIGNALS
 #endif
 
+/*
+ * NetBSD is cross-platform, so determine endianness from machine-specific
+ * header files.
+ */
+#if defined(__NetBSD__)
+#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>