mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 18:59:44 +02:00
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
This commit is contained in:
parent
5e02263a06
commit
5cab81fff8
@ -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))
|
Loading…
Reference in New Issue
Block a user