From: Gabor Juhos Date: Thu, 9 Feb 2012 13:41:53 +0000 (+0000) Subject: toolchain/uClibc: fix 0.9.33 build error on MIPS X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=b6aac97bc313260a0e24e7c8a89c2473482a6943;hp=fe8d333d905dce915c870a1394164a72933a1b6d toolchain/uClibc: fix 0.9.33 build error on MIPS SVN-Revision: 30394 --- 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))