1 --- gpart-0.1h.orig/src/l64seek.c
2 +++ gpart-0.1h/src/l64seek.c
7 -#if defined(__linux__) && defined(__i386__)
8 -_syscall5(int,_llseek,uint,fd,ulong,hi,ulong,lo,loff_t *,res,uint,wh)
13 off64_t l64seek(int fd,off64_t offset,int whence)
15 off64_t ret = (off64_t)-1;
17 -#if defined(__linux__) && defined(__i386__)
19 - unsigned long ohi, olo;
21 - ohi = (unsigned long)((offset >> 32) & 0xFFFFFFFF);
22 - olo = (unsigned long)(offset & 0xFFFFFFFF);
23 - iret = _llseek(fd,ohi,olo,&ret,whence);
28 -#if defined(__FreeBSD__) || (defined(__linux__) && defined(__alpha__))
29 ret = lseek(fd,offset,whence);
34 --- gpart-0.1h.orig/src/l64seek.h
35 +++ gpart-0.1h/src/l64seek.h
40 +#include <sys/stat.h>
41 +#include <sys/types.h>
50 -#if defined(__linux__)
51 -# include <linux/unistd.h>
52 -# include <sys/types.h>
53 - typedef int64_t off64_t;
57 -#if defined(__FreeBSD__)
58 - typedef off_t off64_t;
62 +typedef loff_t off64_t;
63 typedef off64_t s64_t;
65 off64_t l64seek(int fd, off64_t offset, int whence);