1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.2.5/glibc-2.2.5-i386-pwrite64.patch Wed May 23 20:49:02 2007 +0000
1.3 @@ -0,0 +1,20 @@
1.4 +diff -urN glibc-2.2.5-orig/sysdeps/unix/sysv/linux/i386/sysdep.h glibc-2.2.5/sysdeps/unix/sysv/linux/i386/sysdep.h
1.5 +--- glibc-2.2.5-orig/sysdeps/unix/sysv/linux/i386/sysdep.h 2001-07-06 06:56:16.000000000 +0200
1.6 ++++ glibc-2.2.5/sysdeps/unix/sysv/linux/i386/sysdep.h 2004-09-03 12:35:44.000000000 +0200
1.7 +@@ -36,6 +36,16 @@
1.8 + #undef L
1.9 + #define L(name) .L##name
1.10 +
1.11 ++/* This is a kludge to make syscalls.list find these under the names
1.12 ++ * pread and pwrite, since some kernel headers define those names
1.13 ++ * and some define the *64 names for the same system calls. */
1.14 ++#if !defined __NR_pread && defined __NR_pread64
1.15 ++# define __NR_pread __NR_pread64
1.16 ++#endif
1.17 ++#if !defined __NR_pwrite && defined __NR_pwrite64
1.18 ++# define __NR_pwrite __NR_pwrite64
1.19 ++#endif
1.20 ++
1.21 + #ifdef __ASSEMBLER__
1.22 +
1.23 + /* Linux uses a negative return value to indicate syscall errors,