aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-09 13:41:53 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-09 13:41:53 +0000
commit338ef23a6c2c044d5c309e3883af6239402670cc (patch)
tree45a23230f9a578a37163783a9134ef6448a126c6 /toolchain
parent94e40700ff374cbaa51e1cbdd3abad0b7b9d1a22 (diff)
downloadupstream-338ef23a6c2c044d5c309e3883af6239402670cc.tar.gz
upstream-338ef23a6c2c044d5c309e3883af6239402670cc.tar.bz2
upstream-338ef23a6c2c044d5c309e3883af6239402670cc.zip
toolchain/uClibc: fix 0.9.33 build error on MIPS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30394 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/patches-0.9.33/161-mips-add-INLINE_SYSCALL_NOERR-macro.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33/161-mips-add-INLINE_SYSCALL_NOERR-macro.patch b/toolchain/uClibc/patches-0.9.33/161-mips-add-INLINE_SYSCALL_NOERR-macro.patch
new file mode 100644
index 0000000000..0cf3678734
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.33/161-mips-add-INLINE_SYSCALL_NOERR-macro.patch
@@ -0,0 +1,15 @@
+--- a/libc/sysdeps/linux/mips/bits/syscalls.h
++++ b/libc/sysdeps/linux/mips/bits/syscalls.h
+@@ -29,6 +29,12 @@
+ } \
+ result_var; })
+
++#define INLINE_SYSCALL_NOERR(name, nr, args...) \
++ ({ INTERNAL_SYSCALL_DECL(err); \
++ long result_var = INTERNAL_SYSCALL(name, err, nr, args); \
++ if (err) do { } while (0); \
++ result_var; })
++
+ #define INTERNAL_SYSCALL_DECL(err) long err
+
+ #define INTERNAL_SYSCALL_ERROR_P(val, err) ((long) (err))