Applying Debians 04-unaligned-memory.dpatch from Khalid Aziz

<khalid_aziz@hp.com> to fix dosfsck unaligned memory accesses:

  * Fix unaligned memory accesses which cause warnings to appear
    everytime the elilo bootloader script runs. This has led a number of
    users to believe their install has failed (Closes: #258839).

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Daniel Baumann 2008-09-26 14:29:36 +02:00
parent 6d5c09188c
commit 30846972f9

View File

@ -41,7 +41,7 @@ static struct {
({ \
unsigned short __v; \
memcpy( &__v, &f, sizeof(__v) ); \
CF_LE_W( *(unsigned short *)&f ); \
CF_LE_W( *(unsigned short *)&__v ); \
})
#else
#define GET_UNALIGNED_W(f) CF_LE_W( *(unsigned short *)&f )