summaryrefslogtreecommitdiff
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
commitfa11e6e0d69df250b80122238b1600500ba59c2d (patch)
tree315f0819e6bd8d17871b623e8119d5daf3fe12d7
parent841f0f23b365a03f409496e71f96e634511fc5da (diff)
downloadmtk-20170518-fa11e6e0d69df250b80122238b1600500ba59c2d.zip
mtk-20170518-fa11e6e0d69df250b80122238b1600500ba59c2d.tar.gz
mtk-20170518-fa11e6e0d69df250b80122238b1600500ba59c2d.tar.bz2
toolchain/uClibc: fix 0.9.33 build error on MIPS
SVN-Revision: 30394
-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 0000000..0cf3678
--- /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))