blob: 155a6773acc178c9ad009cb7b3a8b7ebb2fcd7d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ac,v 1.4 2000/03/15 00:28:43 hubertf Exp $
--- include/btorder.h.orig Wed Jan 5 17:42:40 2000
+++ include/btorder.h Sat Mar 4 16:28:55 2000
@@ -25,6 +25,7 @@
#define _BTORDER_H
#include <sys/types.h> /* try to load isa_defs.h on Solaris */
+#include <machine/endian.h>
#ifndef _MCONFIG_H
#include <mconfig.h>
@@ -74,7 +75,7 @@
# if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
defined(__PPC) || defined(powerpc) || defined(__powerpc__)
-# if defined(__BIG_ENDIAN__)
+# if defined(__BIG_ENDIAN__) || BYTE_ORDER == BIG_ENDIAN
# define _BIT_FIELDS_HTOL
# else
# define _BIT_FIELDS_LTOH
|