surpport seeking the recorded video
[vuplus_openembedded] / recipes / glibc / glibc-2.3.2 / glibc23-sparc-pread64.patch
1 --- glibc-2.3.2/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2 +++ glibc-2.3.2/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h      2003/10/08 07:40:39
3 @@ -29,6 +29,16 @@
4  #undef SYS_ify
5  #define SYS_ify(syscall_name) __NR_##syscall_name
6  
7 +/* This is a kludge to make syscalls.list find these under the names
8 +   pread and pwrite, since some kernel headers define those names
9 +   and some define the *64 names for the same system calls.  */
10 +#if !defined __NR_pread && defined __NR_pread64
11 +# define __NR_pread __NR_pread64
12 +#endif
13 +#if !defined __NR_pwrite && defined __NR_pwrite64
14 +# define __NR_pwrite __NR_pwrite64
15 +#endif
16 +
17  #ifdef __ASSEMBLER__
18  
19  #define LOADSYSCALL(x) mov __NR_##x, %g1