Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > c012c028d09720833f79e7e2326ad79b > files > 2

extipl-5.04-15mdv2010.1.src.rpm

--- extipl-5.04.orig/src/extipl.c
+++ extipl-5.04/src/extipl.c
@@ -23,7 +23,7 @@
 #include <sys/stat.h>
 #include <regex.h>
 #ifdef __linux__
-#include <linux/unistd.h>
+#include <sys/syscall.h>
 #endif
 #include "extipl.h"
 #include "sysident.h"
@@ -79,7 +79,7 @@
 static char *ask(char *);
 static int  sure(char *);
 #ifdef __linux__
-static _syscall5(int, _llseek,  uint,  fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh);
+static int _llseek(uint, ulong, ulong, loff_t *, uint);
 static int long_seek(int, off_t, int);
 #endif
 /*================ for DEBUG ======================== */
@@ -1104,6 +1104,15 @@
 }
 
 #ifdef __linux__
+
+static int _llseek(fd, hi, lo, res, whence)
+uint fd, whence;
+ulong hi, lo;
+loff_t *res;
+{
+    return syscall(SYS__llseek, fd, hi, lo, res, whence);
+}
+
 /* Hacked by Taketoshi Sano <xlj06203@nifty.ne.jp>  */
 static int long_seek(fd, offset, whence)
 int fd, whence;