summaryrefslogtreecommitdiff
path: root/sysutils/gcdmaster/patches/patch-ac
blob: b14b4e5f06e962dc2b6880ddfb48fce5bb667044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ac,v 1.1.1.1 2001/05/19 13:02:23 drochner Exp $

--- scsilib/include/btorder.h.orig	Sun Apr 29 11:28:21 2001
+++ scsilib/include/btorder.h	Fri May 18 19:04:13 2001
@@ -54,6 +54,15 @@
 /*
  * Bitorder is already known.
  */
+
+#elif defined(__NetBSD__)
+#include <machine/endian.h>
+#if   BYTE_ORDER == LITTLE_ENDIAN
+#define _BIT_FIELDS_LTOH
+#else
+#define _BIT_FIELDS_HTOL
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
+
 #else
 /*
  * Bitorder not yet known.