PKGBUILDs/extra/gpart/gpart-0.1h-PIC.patch

21 lines
523 B
Diff
Raw Normal View History

2009-10-10 02:23:22 +00:00
--- gpart-0.1h/src/l64seek.c
+++ gpart-0.1h/src/l64seek.c
@@ -26,7 +26,7 @@
} ostck[OSTACKLEN];
static int osptr = -1;
-#if defined(__linux__) && defined(__i386__)
+#if defined(__linux__) && defined(__i386__) && ! defined(__PIC__)
_syscall5(int,_llseek,uint,fd,ulong,hi,ulong,lo,loff_t *,res,uint,wh)
#endif
@@ -36,7 +36,7 @@
{
off64_t ret = (off64_t)-1;
-#if defined(__linux__) && defined(__i386__)
+#if defined(__linux__) && defined(__i386__) && ! defined(__PIC__)
int iret;
unsigned long ohi, olo;