diff options
Diffstat (limited to 'sys-kernel/linux-headers/files')
-rw-r--r-- | sys-kernel/linux-headers/files/linux-headers-2.4-armeb-stat.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/files/linux-headers-2.4-armeb-stat.patch b/sys-kernel/linux-headers/files/linux-headers-2.4-armeb-stat.patch new file mode 100644 index 000000000000..0422912f9162 --- /dev/null +++ b/sys-kernel/linux-headers/files/linux-headers-2.4-armeb-stat.patch @@ -0,0 +1,51 @@ +http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=863/1 + +--- include/asm-arm/stat.h ++++ include/asm-arm/stat.h +@@ -42,8 +42,14 @@ + * insane amounts of padding around dev_t's. + */ + struct stat64 { +- unsigned short st_dev; +- unsigned char __pad0[10]; ++#if defined(__ARMEB__) ++ unsigned char __pad0b[6]; ++ unsigned short st_dev; ++#else ++ unsigned short st_dev; ++ unsigned char __pad0b[6]; ++#endif ++ unsigned char __pad0[4]; + + #define STAT64_HAS_BROKEN_ST_INO 1 + unsigned long __st_ino; +@@ -53,14 +59,25 @@ + unsigned long st_uid; + unsigned long st_gid; + +- unsigned short st_rdev; +- unsigned char __pad3[10]; ++#if defined(__ARMEB__) ++ unsigned char __pad3b[6]; ++ unsigned short st_rdev; ++#else /* Must be little */ ++ unsigned short st_rdev; ++ unsigned char __pad3b[6]; ++#endif ++ unsigned char __pad3[4]; + + long long st_size; + unsigned long st_blksize; + +- unsigned long st_blocks; /* Number 512-byte blocks allocated. */ +- unsigned long __pad4; /* future possible st_blocks high bits */ ++#if defined(__ARMEB__) ++ unsigned long __pad4; /* Future possible st_blocks hi bits */ ++ unsigned long st_blocks; /* Number 512-byte blocks allocated. */ ++#else /* Must be little */ ++ unsigned long st_blocks; /* Number 512-byte blocks allocated. */ ++ unsigned long __pad4; /* Future possible st_blocks hi bits */ ++#endif + + unsigned long st_atime; + unsigned long __pad5; |