blob: b52cd1d506277cfd082d08cfcf94c1a31833de0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ac,v 1.5 2001/05/24 04:28:20 jlam Exp $
--- src/af/util/xp/ut_endian.h.orig Sat Feb 24 03:49:29 2001
+++ src/af/util/xp/ut_endian.h
@@ -28,6 +28,13 @@
#else
#define UT_BIG_ENDIAN
#endif
+#elif defined(__NetBSD__)
+ #include <machine/endian.h>
+ #if BYTE_ORDER == LITTLE_ENDIAN
+ #define UT_LITTLE_ENDIAN
+ #elif BYTE_ORDER == BIG_ENDIAN
+ #define UT_BIG_ENDIAN
+ #endif
#else /* this is for Linux */
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
|