]> git.pld-linux.org Git - packages/gpart.git/commitdiff
- from http://ftp.debian.org/debian/pool/main/g/gpart/gpart_0.1h-4.1.diff.gz
authorareq <areq@pld-linux.org>
Thu, 31 May 2007 12:44:24 +0000 (12:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gpart-l64seek.patch -> 1.1

gpart-l64seek.patch [new file with mode: 0644]

diff --git a/gpart-l64seek.patch b/gpart-l64seek.patch
new file mode 100644 (file)
index 0000000..8a14411
--- /dev/null
@@ -0,0 +1,71 @@
+--- gpart-0.1h.orig/src/l64seek.c
++++ gpart-0.1h/src/l64seek.c
+@@ -25,30 +25,11 @@
+ } ostck[OSTACKLEN];
+ static int            osptr = -1;
+-#if defined(__linux__) && defined(__i386__)
+-_syscall5(int,_llseek,uint,fd,ulong,hi,ulong,lo,loff_t *,res,uint,wh)
+-#endif
+-
+-
+-
+ off64_t l64seek(int fd,off64_t offset,int whence)
+ {
+       off64_t         ret = (off64_t)-1;
+-#if defined(__linux__) && defined(__i386__)
+-      int             iret;
+-      unsigned long   ohi, olo;
+-
+-      ohi = (unsigned long)((offset >> 32) & 0xFFFFFFFF);
+-      olo = (unsigned long)(offset & 0xFFFFFFFF);
+-      iret = _llseek(fd,ohi,olo,&ret,whence);
+-      if (iret == -1)
+-              ret = (off64_t)-1;
+-#endif
+-
+-#if defined(__FreeBSD__) || (defined(__linux__) && defined(__alpha__))
+       ret = lseek(fd,offset,whence);
+-#endif
+       return (ret);
+ }
+--- gpart-0.1h.orig/src/l64seek.h
++++ gpart-0.1h/src/l64seek.h
+@@ -17,6 +17,8 @@
+ #ifndef _L64SEEK_H
+ #define _L64SEEK_H
++#include <sys/stat.h>
++#include <sys/types.h>
+ #include <unistd.h>
+ /*
+@@ -25,19 +27,7 @@
+  * offsets.
+  */
+-
+-#if defined(__linux__)
+-#     include <linux/unistd.h>
+-#     include <sys/types.h>
+-      typedef int64_t off64_t;
+-#endif
+-
+-
+-#if defined(__FreeBSD__)
+-      typedef off_t off64_t;
+-#endif
+-
+-
++typedef loff_t off64_t;
+ typedef off64_t s64_t;
+ off64_t l64seek(int fd, off64_t offset, int whence);
+@@ -45,5 +35,4 @@
+ int l64opush(int);
+ s64_t l64opop(int);
+-
+ #endif
This page took 0.027271 seconds and 4 git commands to generate.