diff -u2 -r glibc-2.3.2.orig/sysdeps/unix/sysv/linux/alpha/syscalls.list glibc-2.3.2/sysdeps/unix/sysv/linux/alpha/syscalls.list --- glibc-2.3.2.orig/sysdeps/unix/sysv/linux/alpha/syscalls.list 2003-10-11 12:29:20.000000000 +0200 +++ glibc-2.3.2/sysdeps/unix/sysv/linux/alpha/syscalls.list 2003-10-11 12:45:26.000000000 +0200 @@ -24,5 +24,5 @@ posix_fadvise64 - fadvise64 Vi:iiii posix_fadvise64 posix_fadvise pread - pread64 C:4 __libc_pread __libc_pread64 __pread pread __pread64 pread64 -pwrite - pwrite64 C:4 __libc_pwrite __libc_pwrite64 __pwrite pwrite __pwrite64 pwrite64 +pwrite - pwrite64 C:4 __libc_pwrite __libc_pwrite64 __pwrite pwrite __pwrite64 pwrite64 fstatfs - fstatfs i:ip __fstatfs fstatfs __fstatfs64 fstatfs64 statfs - statfs i:sp __statfs statfs statfs64 diff -u2 -r glibc-2.3.2.orig/sysdeps/unix/sysv/linux/alpha/sysdep.h glibc-2.3.2/sysdeps/unix/sysv/linux/alpha/sysdep.h --- glibc-2.3.2.orig/sysdeps/unix/sysv/linux/alpha/sysdep.h 2003-10-11 12:29:20.000000000 +0200 +++ glibc-2.3.2/sysdeps/unix/sysv/linux/alpha/sysdep.h 2003-10-11 12:46:44.000000000 +0200 @@ -43,4 +43,14 @@ #endif +/* 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 + /* Define some aliases to make automatic syscall generation work properly. The SYS_* variants are for the benefit of the files in