Fix get_ulong() macro on AMD64 (or any little-endian 64-bit platform).

This bug caused vn_stat() to fail on files larger than 2gb on msdosfs
filesystems on AMD64.

PR:		106703
Tested by:	Axel Gonzalez <loox e-shell net>
MFC after:	3 days
This commit is contained in:
Craig Rodrigues 2006-12-19 01:55:45 +00:00
parent 06cacb29ca
commit d01e83878b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165341

View File

@ -94,11 +94,7 @@ struct bpb710 {
#include <machine/endian.h>
#ifdef __i386__
#define UNLALIGNED_ACCESS
#endif
#if (BYTE_ORDER == LITTLE_ENDIAN) && defined(UNALIGNED_ACCESS)
#if (BYTE_ORDER == LITTLE_ENDIAN)
#define getushort(x) *((u_int16_t *)(x))
#define getulong(x) *((u_int32_t *)(x))
#define putushort(p, v) (*((u_int16_t *)(p)) = (v))