diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-02-10 15:25:11 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-02-10 18:51:58 -0200 |
commit | 3c1879f4a8ba2f8076fa4f52f42dd8c7edc4be87 (patch) | |
tree | fb3184040195ae061229c652322ccf25398eafba /packages/parted/files/use_llseek_syscall.patch | |
parent | 0831b585c51a5d7e2922e945a9d491bb8f45862d (diff) |
parted: revamp 1.8.8 recipe
It now uses a macro to define _llseek if it is not available and sync
it against current stable branch making it more suitable to be used in
scripts and like.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'packages/parted/files/use_llseek_syscall.patch')
-rw-r--r-- | packages/parted/files/use_llseek_syscall.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/parted/files/use_llseek_syscall.patch b/packages/parted/files/use_llseek_syscall.patch new file mode 100644 index 0000000000..ce305635ca --- /dev/null +++ b/packages/parted/files/use_llseek_syscall.patch @@ -0,0 +1,28 @@ +--- a/libparted/arch/linux.c~ 2009-02-06 17:22:22.000000000 -0200 ++++ a/libparted/arch/linux.c 2009-02-06 17:39:28.000000000 -0200 +@@ -53,6 +53,11 @@ + + #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) + ++#ifndef HAVE_LLSEEK ++#define _llseek(fd, offset_high, offset_low, result, origin) \ ++ syscall(SYS__llseek, fd, offset_high, offset_low, result, origin) ++#endif ++ + #ifndef __NR__llseek + #define __NR__llseek 140 + #endif +@@ -1362,13 +1367,6 @@ + + #if SIZEOF_OFF_T < 8 + +-static _syscall5(int,_llseek, +- unsigned int, fd, +- unsigned long, offset_high, +- unsigned long, offset_low, +- loff_t*, result, +- unsigned int, origin) +- + loff_t + llseek (unsigned int fd, loff_t offset, unsigned int whence) + { |