diff options
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/pread_write.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/pread_write.c b/libc/sysdeps/linux/common/pread_write.c index 88e6957ab..089ee934d 100644 --- a/libc/sysdeps/linux/common/pread_write.c +++ b/libc/sysdeps/linux/common/pread_write.c @@ -25,6 +25,11 @@ extern __typeof(pread64) __libc_pread64; extern __typeof(pwrite64) __libc_pwrite64; #endif +#ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */ +# undef __NR_pread +# define __NR_pread __NR_pread64 +#endif + #include <bits/kernel_types.h> #ifdef __NR_pread @@ -51,6 +56,11 @@ weak_alias(__libc_pread64,pread64) #endif /* __NR_pread */ +#ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */ +# undef __NR_pwrite +# define __NR_pwrite __NR_pwrite64 +#endif + #ifdef __NR_pwrite # define __NR___syscall_pwrite __NR_pwrite |