Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > f57034bf830d4e97c2426f566fbc9051 > files > 2

bochs-tools-1.6.4-5mdv2010.0.src.rpm

--- /home/pterjan/rpm/BUILD/bochstools-1.6.4/src/bxtptinfo.c~	2004-01-14 13:29:31.000000000 +0100
+++ /home/pterjan/rpm/BUILD/bochstools-1.6.4/src/bxtptinfo.c	2007-08-15 20:51:28.000000000 +0200
@@ -88,9 +88,19 @@
  * Note: we use 512-byte sectors here, irrespective of the hardware ss.
  */
 #if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__)
+
+#ifdef _syscall5
 static
 _syscall5(int,  _llseek,  uint,  fd, ulong, hi, ulong, lo,
        loff_t *, res, uint, wh);
+#else
+static int _llseek (unsigned int fd, unsigned long oh,
+                   unsigned long ol, long long *result,
+                   unsigned int origin) {
+       return syscall (__NR__llseek, fd, oh, ol, result, origin);
+}
+#endif /* _syscall5 */
+
 #endif
 
 static int