(__NR_pread, __NR_pwrite): Define to __NR_p{read,write}64 if not
authordrepper <drepper>
Tue, 23 Mar 2004 23:32:03 +0000 (23:32 +0000)
committerdrepper <drepper>
Tue, 23 Mar 2004 23:32:03 +0000 (23:32 +0000)
defined instead of defining it the other way around.

sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h

index 2fb6e7a..f0d7cbe 100644 (file)
 
 /*
  * Newer kernel versions redefined __NR_pread and __NR_pwrite to
- * __NR_pread64 and __NR_pwrite64. We use the new names but have
- * to define them on our own for compiling against older kernels.
+ * __NR_pread64 and __NR_pwrite64.
  */
-#ifndef __NR_pread64
-# define __NR_pread64 __NR_pread
+#ifndef __NR_pread
+# define __NR_pread __NR_pread64
 #endif
-#ifndef __NR_pwrite64
-# define __NR_pwrite64 __NR_pwrite
+#ifndef __NR_pwrite
+# define __NR_pwrite __NR_pwrite64
 #endif
 
 #undef SYS_ify