Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > d771f8e23606d9bb14400b0d66e4a608 > files > 2

extipl-5.04-24.mga7.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;