blob: fedf15eecbadfc8a2401a570557fe3b0d3940ed2 (
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-ab,v 1.1.1.1 1999/10/11 05:48:25 jlam Exp $
--- des/des.c.orig Fri Feb 23 06:10:37 1996
+++ des/des.c Mon Oct 11 01:38:34 1999
@@ -4,6 +4,17 @@
*/
#define NULL 0
+/*
+ * 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__ */
+
#ifdef M_LITTLE_ENDIAN
static unsigned long byteswap();
#endif
|