[madwifi] Make madwifi compile with kernel 2.6.30.
[openwrt.git] / toolchain / uClibc / patches-0.9.29 / 133-unistd_arm.patch
1 --- a/extra/scripts/gen_bits_syscall_h.sh
2 +++ b/extra/scripts/gen_bits_syscall_h.sh
3 @@ -24,8 +24,8 @@ esac
4 ( echo "#include <asm/unistd.h>";
5 echo "#include <asm/unistd.h>" |
6 $CC -E $CC_SYSNUM_ARGS $INCLUDE_OPTS - |
7 - sed -ne 's/^[ ]*#define[ ]*__NR_\([A-Za-z0-9_]*\).*/UCLIBC_\1 __NR_\1/gp' \
8 - -e 's/^[ ]*#undef[ ]*__NR_\([A-Za-z0-9_]*\).*/UNDEFUCLIBC_\1 __NR_\1/gp' # needed to strip out any kernel-internal defines
9 + sed -ne 's/^[ ]*#define[ ]*\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/UCLIBC\1\2 \1\2/gp' \
10 + -e 's/^[ ]*#undef[ ]*\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/UNDEFUCLIBC\1\2 \1\2/gp' # needed to strip out any kernel-internal defines
11 ) |
12 $CC -E $INCLUDE_OPTS - |
13 ( echo "/* WARNING!!! AUTO-GENERATED FILE!!! DO NOT EDIT!!! */" ; echo ;
14 @@ -35,10 +35,10 @@ $CC -E $INCLUDE_OPTS - |
15 echo "#ifndef _SYSCALL_H" ;
16 echo "# error \"Never use <bits/sysnum.h> directly; include <sys/syscall.h> instead.\"" ;
17 echo "#endif" ; echo ;
18 - sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#undef __NR_\1\
19 -#define __NR_\1 \2\
20 -#define SYS_\1 __NR_\1/gp' \
21 - -e 's/^UNDEFUCLIBC_\([A-Za-z0-9_]*\).*/#undef __NR_\1/gp'
22 + sed -ne 's/^UCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\) *\(.*\)/#undef \1\2\
23 +#define \1\2 \3\
24 +#define SYS_\2 \1\2/gp' \
25 + -e 's/^UNDEFUCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/#undef \1\2/gp'
26 echo ;
27 echo "#endif" ;
28 )
This page took 0.046696 seconds and 5 git commands to generate.