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:
parent
9fc60c2d65
commit
24c66ef262
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user