diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-17 06:27:13 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-17 06:27:13 +0000 |
commit | d62ce7582113e5da9c6d0eea044a3c499daf76e9 (patch) | |
tree | 46a90b4083c1f2f9fc222e1336364a9e9db7c721 /sys-kernel/linux-headers/files | |
parent | quote D (diff) | |
download | historical-d62ce7582113e5da9c6d0eea044a3c499daf76e9.tar.gz historical-d62ce7582113e5da9c6d0eea044a3c499daf76e9.tar.bz2 historical-d62ce7582113e5da9c6d0eea044a3c499daf76e9.zip |
fix big endian arm stat.h
Package-Manager: portage-2.0.51.22-r1
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; |