Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 72048 | Differences between
and this patch

Collapse All | Expand All

(-)systemimager-3.4.1.old/patches/raidtools.30PIC.patch (+28 lines)
Line 0 Link Here
1
Fix building with -fPIC
2
http://bugs.gentoo.org/show_bug.cgi?id=34712
3
(note: this is outdated since we fixed the PIC issues in our linux-headers 
4
ebuilds when doing syscall()'s on x86)
5
6
Fix running on amd64
7
http://bugs.gentoo.org/show_bug.cgi?id=93694
8
9
--- raidtools-1.00.3/raid_io.c
10
+++ raidtools-1.00.3/raid_io.c
11
@@ -81,7 +81,7 @@
12
 }
13
 #undef F
14
 
15
-#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__))
16
+#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__x86_64__) || defined(__PIC__))
17
 # ifndef __NR__llseek
18
 #  ifdef __sparc__
19
 #   define __NR__llseek		236
20
@@ -105,7 +105,7 @@
21
 	long long result;
22
 	int retval;
23
 
24
-#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__)
25
+#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__x86_64__) || defined(__PIC__)
26
 	return lseek(fd, offset, SEEK_SET);
27
 #else
28
 	retval = _llseek (fd, ((unsigned long long) offset) >> 32,

Return to bug 72048