summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Becker <geoman@gentoo.org>2006-04-21 16:02:12 +0000
committerStephen Becker <geoman@gentoo.org>2006-04-21 16:02:12 +0000
commit7ee0cbe4cf3258e120c329c36495ce5f90b68c3a (patch)
treeca4018e23458982c7850877270904a05f7c23596 /sys-apps/util-linux/files
parentDon't depend on expect. Thanks to Emil Beinroth in bug #98864. (diff)
downloadgentoo-2-7ee0cbe4cf3258e120c329c36495ce5f90b68c3a.tar.gz
gentoo-2-7ee0cbe4cf3258e120c329c36495ce5f90b68c3a.tar.bz2
gentoo-2-7ee0cbe4cf3258e120c329c36495ce5f90b68c3a.zip
use lseek instead of llseek for mips, and mark -r3 stable on mips
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'sys-apps/util-linux/files')
-rw-r--r--sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch b/sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch
new file mode 100644
index 000000000000..3fcd5b554a31
--- /dev/null
+++ b/sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch
@@ -0,0 +1,24 @@
+Because there is no llseek defined for mips n32, we will use lseek instead.
+
+--- util-linux-2.12r/fdisk/sfdisk.c.orig
++++ util-linux-2.12r/fdisk/sfdisk.c
+@@ -172,7 +172,7 @@
+ * Note: we use 512-byte sectors here, irrespective of the hardware ss.
+ */
+ #undef use_lseek
+-#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (__s390x__)
++#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (__s390x__) || defined (__mips__)
+ #define use_lseek
+ #endif
+
+--- util-linux-2.12r/partx/partx.c.orig
++++ util-linux-2.12r/partx/partx.c
+@@ -333,7 +333,7 @@
+ /*
+ * sseek: seek to specified sector
+ */
+-#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__)
++#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__) && !defined(__mips__)
+ #define NEED__llseek
+ #endif
+