From 6740397ba71963a2552fcb3b68ae6922b1b29b2d Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 25 Feb 2005 15:18:13 +0000 Subject: [BZ #758] 2004-11-11 Richard Sandiford [BZ #758] * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only preprocess if it defines ABI-prefixed syscall names like __NR_N32_open. Just include otherwise. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the standard __NR prefix. * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise. * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that the output file is compatible with both pre-2.6 and 2.6 kernel headers. Extract separate syscall lists for each ABI. --- sysdeps/unix/sysv/linux/mips/configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/mips/configure') diff --git a/sysdeps/unix/sysv/linux/mips/configure b/sysdeps/unix/sysv/linux/mips/configure index c081795aa1..4d9568f001 100755 --- a/sysdeps/unix/sysv/linux/mips/configure +++ b/sysdeps/unix/sysv/linux/mips/configure @@ -18,7 +18,7 @@ mips*64*) { echo "$as_me:$LINENO: WARNING: *** asm/unistd.h not found, it will not be pre-processed" >&5 echo "$as_me: WARNING: *** asm/unistd.h not found, it will not be pre-processed" >&2;} echo '#include ' > asm-unistd.h - else + elif grep __NR_N32_open "$asm_unistd_h" > /dev/null; then # The point of this preprocessing is to turn __NR_ into # __NR_N64_, as well as to define __NR_ to # __NR__, if __NR__ is defined @@ -68,6 +68,8 @@ BEGIN { print "#include "; } { print; }' + else + echo '#include ' > asm-unistd.h fi ;; mips*) rm -f asm-unistd.h -- cgit v1.2.3-70-g09d2