summaryrefslogtreecommitdiff
path: root/packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch')
-rw-r--r--packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch b/packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch
index e69de29bb2..4671378f3e 100644
--- a/packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch
+++ b/packages/glibc/glibc-2.3.2/glibc23-sparc-pread64.patch
@@ -0,0 +1,19 @@
+--- glibc-2.3.2/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
++++ glibc-2.3.2/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h 2003/10/08 07:40:39
+@@ -29,6 +29,16 @@
+ #undef SYS_ify
+ #define SYS_ify(syscall_name) __NR_##syscall_name
+
++/* This is a kludge to make syscalls.list find these under the names
++ pread and pwrite, since some kernel headers define those names
++ and some define the *64 names for the same system calls. */
++#if !defined __NR_pread && defined __NR_pread64
++# define __NR_pread __NR_pread64
++#endif
++#if !defined __NR_pwrite && defined __NR_pwrite64
++# define __NR_pwrite __NR_pwrite64
++#endif
++
+ #ifdef __ASSEMBLER__
+
+ #define LOADSYSCALL(x) mov __NR_##x, %g1