yann@1
|
1 |
Should fix
|
yann@1
|
2 |
|
yann@1
|
3 |
../sysdeps/unix/sysv/linux/pread.c: In function `__libc_pread':
|
yann@1
|
4 |
../sysdeps/unix/sysv/linux/pread.c:52: error: `__NR_pread' undeclared (first use in this function)
|
yann@1
|
5 |
../sysdeps/unix/sysv/linux/pread.c:52: error: (Each undeclared identifier is reported only once
|
yann@1
|
6 |
../sysdeps/unix/sysv/linux/pread.c:52: error: for each function it appears in.)
|
yann@1
|
7 |
make[2]: *** [/home/dank/crosstool-0.28/build/arm-9tdmi-linux-gnu/gcc-3.4.1-glibc-2.2.5/build-glibc/posix/pread.o] Error 1
|
yann@1
|
8 |
make[2]: Leaving directory `/home/dank/crosstool-0.28/build/arm-9tdmi-linux-gnu/gcc-3.4.1-glibc-2.2.5/glibc-2.2.5/posix'
|
yann@1
|
9 |
make[1]: *** [posix/subdir_lib] Error 2
|
yann@1
|
10 |
|
yann@1
|
11 |
Copied from similar patch for alpha.
|
yann@1
|
12 |
|
yann@1
|
13 |
--- glibc-2.2.5-orig/sysdeps/unix/sysv/linux/arm/sysdep.h 2001-07-05 21:56:13.000000000 -0700
|
yann@1
|
14 |
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/arm/sysdep.h 2004-08-07 10:45:26.000000000 -0700
|
yann@1
|
15 |
@@ -32,6 +32,15 @@
|
yann@1
|
16 |
#define SWI_BASE (0x900000)
|
yann@1
|
17 |
#define SYS_ify(syscall_name) (__NR_##syscall_name)
|
yann@1
|
18 |
|
yann@1
|
19 |
+/* This is a kludge to make syscalls.list find these under the names
|
yann@1
|
20 |
+ pread and pwrite, since some kernel headers define those names
|
yann@1
|
21 |
+ and some define the *64 names for the same system calls. */
|
yann@1
|
22 |
+#if !defined __NR_pread && defined __NR_pread64
|
yann@1
|
23 |
+# define __NR_pread __NR_pread64
|
yann@1
|
24 |
+#endif
|
yann@1
|
25 |
+#if !defined __NR_pwrite && defined __NR_pwrite64
|
yann@1
|
26 |
+# define __NR_pwrite __NR_pwrite64
|
yann@1
|
27 |
+#endif
|
yann@1
|
28 |
|
yann@1
|
29 |
#ifdef __ASSEMBLER__
|
yann@1
|
30 |
|