From: Markos Chandras <[email protected]> When processing #defines and #undefs from the Linux asm/unistd.h, define __NR_x produces an extra #define SYS_x, but undef __NR_x doesn't produce an extra #undef SYS_x. Add the extra #undef so that kernel header files can #undef syscall numbers.
Signed-off-by: Markos Chandras <[email protected]> --- extra/scripts/gen_bits_syscall_h.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/scripts/gen_bits_syscall_h.sh b/extra/scripts/gen_bits_syscall_h.sh index f6353ba..fd141f0 100755 --- a/extra/scripts/gen_bits_syscall_h.sh +++ b/extra/scripts/gen_bits_syscall_h.sh @@ -40,7 +40,8 @@ $CC -E $INCLUDE_OPTS - | sed -ne 's/^UCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\) *\(.*\)/#undef \1\2\ #define \1\2 \3\ #define SYS_\2 \1\2/gp' \ - -e 's/^UNDEFUCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/#undef \1\2/gp' + -e 's/^UNDEFUCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/#undef \1\2\ +#undef SYS_\2/gp' echo ; echo "#endif" ; ) -- 1.8.0 _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
