summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nios2')
-rw-r--r--libc/sysdeps/linux/nios2/bits/syscalls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/nios2/bits/syscalls.h b/libc/sysdeps/linux/nios2/bits/syscalls.h
index f80bea206..3214e3ce2 100644
--- a/libc/sysdeps/linux/nios2/bits/syscalls.h
+++ b/libc/sysdeps/linux/nios2/bits/syscalls.h
@@ -19,6 +19,7 @@
} while (0)
#define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \
+(__extension__ \
({ \
long __res; \
__asm__ __volatile__ ( \
@@ -36,7 +37,8 @@
CLOB_ARGS_##nr /* Clobbered */ \
); \
__res; \
- })
+ }) \
+)
#define INTERNAL_SYSCALL_ERROR_P(val, err) \
((unsigned long)(val) >= (unsigned long)(-125))