summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/avr32
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/avr32')
-rw-r--r--libc/sysdeps/linux/avr32/bits/syscalls.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/avr32/bits/syscalls.h b/libc/sysdeps/linux/avr32/bits/syscalls.h
index 836cb2d76..70dc1d958 100644
--- a/libc/sysdeps/linux/avr32/bits/syscalls.h
+++ b/libc/sysdeps/linux/avr32/bits/syscalls.h
@@ -9,6 +9,7 @@
#include <errno.h>
#define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \
+(__extension__ \
({ \
register int __a1 __asm__("r12"); \
register int _scno __asm__("r8") = name; \
@@ -18,8 +19,8 @@
: "r"(_scno) ASM_ARGS_##nr \
: "cc", "memory"); \
__a1; \
- })
-
+ }) \
+)
#define INTERNAL_SYSCALL_ERROR_P(val, err) \
((unsigned int)(val) >= 0xfffff001U)