diff options
author | sos <sos@FreeBSD.org> | 2002-04-05 13:10:26 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-04-05 13:10:26 +0000 |
commit | 51ccaee275d7c6f909f812b4ca45c2732a221f6d (patch) | |
tree | efaf3328bac6f0790d5befad7928a90f232ca222 /sys/sys/cdio.h | |
parent | 3fd899708cf4b8c7ce1f9a87df1a86fee51953f4 (diff) | |
download | FreeBSD-src-51ccaee275d7c6f909f812b4ca45c2732a221f6d.zip FreeBSD-src-51ccaee275d7c6f909f812b4ca45c2732a221f6d.tar.gz |
Add endianess kludge code, so that bitfields work on the sparc64 as well.
Bad GCC, no cookies...
Diffstat (limited to 'sys/sys/cdio.h')
-rw-r--r-- | sys/sys/cdio.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/sys/cdio.h b/sys/sys/cdio.h index 8c23357..1e21513 100644 --- a/sys/sys/cdio.h +++ b/sys/sys/cdio.h @@ -43,9 +43,15 @@ union msf_lba { }; struct cd_toc_entry { - u_int :8; - u_int control:4; - u_int addr_type:4; +#if BYTE_ORDER == LITTLE_ENDIAN + u_int16_t :8; + u_int16_t control:4; + u_int16_t addr_type:4; +#else + u_int16_t :8; + u_int16_t addr_type:4; + u_int16_t control:4; +#endif u_char track; u_int :8; union msf_lba addr; |