Skip to content
Snippets Groups Projects
Commit fa11e6e0 authored by Gabor Juhos's avatar Gabor Juhos
Browse files

toolchain/uClibc: fix 0.9.33 build error on MIPS

SVN-Revision: 30394
parent 841f0f23
No related branches found
No related tags found
Loading
--- 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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment