summaryrefslogtreecommitdiff
path: root/japanese/msdosfs/patches.5/patch-ab
blob: e437a9a94c50e285fb4dd00f87d24d8e77f78546 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- bpb.h.orig	Sat Aug 28 09:48:07 1999
+++ bpb.h	Wed Oct  4 00:40:56 2000
@@ -113,8 +113,14 @@
  * 16-bit and 32-bit quantities on byte boundaries.  If this is not true,
  * use the macros for the big-endian case.
  */
+
 #include <machine/endian.h>
-#if (BYTE_ORDER == LITTLE_ENDIAN) 			/* && defined(UNALIGNED_ACCESS) */
+
+#ifdef __i386__
+#define	UNLALIGNED_ACCESS
+#endif
+
+#if (BYTE_ORDER == LITTLE_ENDIAN) && defined(UNALIGNED_ACCESS)
 #define	getushort(x)	*((u_int16_t *)(x))
 #define	getulong(x)	*((u_int32_t *)(x))
 #define	putushort(p, v)	(*((u_int16_t *)(p)) = (v))