2004-02-16 Ryan Oliver * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_pread64): Define to __NR_pread if not defined. (__NR_pwrite64): Define to __NR_pwrite if not defined. --- sysdeps/unix/sysv/linux/alpha/sysdep.h.orig 2003-06-21 02:24:36.000000000 +1000 +++ sysdeps/unix/sysv/linux/alpha/sysdep.h 2004-02-16 18:02:33.000000000 +1100 @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003 +/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper, , August 1995. @@ -31,6 +31,16 @@ /* There is some commonality. */ #include +/* 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. */ +#if !defined __NR_pread64 && defined __NR_pread +# define __NR_pread64 __NR_pread +#endif +#if !defined __NR_write64 && defined __NR_write +# define __NR_pwrite64 __NR_pwrite +#endif + /* For Linux we can use the system call table in the header file /usr/include/asm/unistd.h of the kernel. But these symbols do not follow the SYS_* syntax