summaryrefslogtreecommitdiff
path: root/japanese/msdosfs/patches.5/patch-ab
diff options
context:
space:
mode:
authorR. Imura <imura@FreeBSD.org>2000-10-07 15:34:21 +0000
committerR. Imura <imura@FreeBSD.org>2000-10-07 15:34:21 +0000
commit183c7be52b156ad85d8d259815fe733065dc808b (patch)
tree220c133463b642a3a7700aa1b805bb6f7618251a /japanese/msdosfs/patches.5/patch-ab
parent- Update port to 0.94.8.3 (fix security hole) (diff)
Add new port: ja-msdosfs - mounts japanese FAT.
Be sure to edit ${FILESDIR}/revlist if you modify this port and sync with the kernel.
Diffstat (limited to 'japanese/msdosfs/patches.5/patch-ab')
-rw-r--r--japanese/msdosfs/patches.5/patch-ab18
1 files changed, 18 insertions, 0 deletions
diff --git a/japanese/msdosfs/patches.5/patch-ab b/japanese/msdosfs/patches.5/patch-ab
new file mode 100644
index 000000000000..e437a9a94c50
--- /dev/null
+++ b/japanese/msdosfs/patches.5/patch-ab
@@ -0,0 +1,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))