| use the right LFS defines to get 64bit definitions of funcs rather |
| than hardcoding llseek. not all ABIs support llseek, but they do |
| all support lseek64. |
| |
| --- a/src/disk.c |
| +++ b/src/disk.c |
| @@ -7,6 +7,7 @@ |
| * Bits of this are derived from work by Ethan Solomita. |
| */ |
| |
| +#define _LARGEFILE64_SOURCE 1 |
| #include <stdio.h> |
| #include <sys/types.h> |
| #include <unistd.h> |
| @@ -289,9 +290,7 @@ int |
| seekto(int fd, uint64 off) |
| { |
| #ifdef __linux__ |
| - extern loff_t llseek(int, loff_t, int); |
| - |
| - if (llseek(fd, (loff_t)off, SEEK_SET) == (loff_t)-1) { |
| + if (lseek64(fd, off, SEEK_SET) == (uint64)-1) { |
| return(-1); |
| } |
| return (0); |