From 345b9927e608fd92e6231ef803b940afd6e6558c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 27 Aug 2002 19:31:31 +0000 Subject: Make sure that bits/syscalls.h always includes bits/syscall.h -Erik --- extra/scripts/gen_bits_syscall_h.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/scripts/gen_bits_syscall_h.sh b/extra/scripts/gen_bits_syscall_h.sh index ce599c9b0..df83bcef1 100755 --- a/extra/scripts/gen_bits_syscall_h.sh +++ b/extra/scripts/gen_bits_syscall_h.sh @@ -21,7 +21,8 @@ $CC -E - | echo "#ifndef _SYSCALL_H" ; echo "# error \"Never use directly; include instead.\"" ; echo "#endif" ; echo ; - sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#define __NR_\1 \2\ + sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#undef __NR_\1\ +#define __NR_\1 \2\ #define SYS_\1 __NR_\1/gp' echo "#endif" ; echo ; ) -- cgit v1.2.3