diff options
author | Roland McGrath <roland@gnu.org> | 2003-11-12 01:04:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-11-12 01:04:12 +0000 |
commit | 66cc4d07ff3905445a75abecbb7485a13fc5e326 (patch) | |
tree | 0fa152cd0c2825d7a516a3706c5c197e9e33ecc9 /sysdeps | |
parent | 2c9a14889ce72ce247410a380f111a21599ba955 (diff) | |
download | glibc-66cc4d07ff3905445a75abecbb7485a13fc5e326.tar.gz glibc-66cc4d07ff3905445a75abecbb7485a13fc5e326.tar.xz glibc-66cc4d07ff3905445a75abecbb7485a13fc5e326.zip |
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
Define __NR_pread/__NR_pwrite if not done in kernel headers
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h b/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h index 7e88ea58ac..37a68aaeba 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h @@ -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 |