summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-17 06:27:13 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-17 06:27:13 +0000
commit91082da9d6c1c817dda58c0566591f8d70da8211 (patch)
tree5baba3d9fa556cc5c1be2289f5a494ddd3511434 /sys-kernel/linux-headers
parentquote D (diff)
downloadgentoo-2-91082da9d6c1c817dda58c0566591f8d70da8211.tar.gz
gentoo-2-91082da9d6c1c817dda58c0566591f8d70da8211.tar.bz2
gentoo-2-91082da9d6c1c817dda58c0566591f8d70da8211.zip
fix big endian arm stat.h
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-kernel/linux-headers')
-rw-r--r--sys-kernel/linux-headers/files/linux-headers-2.4-armeb-stat.patch51
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild4
2 files changed, 53 insertions, 2 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;
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild
index d0ad0a3bc9d0..9c30dd61c8ba 100644
--- a/sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild
+++ b/sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild,v 1.4 2005/07/16 01:29:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.4.26-r1.ebuild,v 1.5 2005/07/17 06:27:13 vapier Exp $
ETYPE="headers"
H_SUPPORTEDARCH="arm m68k sparc"
@@ -10,4 +10,4 @@ detect_version
SRC_URI="${KERNEL_URI}"
KEYWORDS="-* arm m68k ~sparc"
-UNIPATCH_LIST=""
+UNIPATCH_LIST="${FILESDIR}/linux-headers-2.4-armeb-stat.patch"