diff options
Diffstat (limited to 'libc/sysdeps/linux/x86_64/__syscall_error.c')
-rw-r--r-- | libc/sysdeps/linux/x86_64/__syscall_error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/x86_64/__syscall_error.c b/libc/sysdeps/linux/x86_64/__syscall_error.c index 0b82faacb..ff2d9f64c 100644 --- a/libc/sysdeps/linux/x86_64/__syscall_error.c +++ b/libc/sysdeps/linux/x86_64/__syscall_error.c @@ -10,7 +10,8 @@ /* This routine is jumped to by all the syscall handlers, to stash * an error number into errno. */ -int attribute_hidden __syscall_error(void) +int __syscall_error(void) attribute_hidden; +int __syscall_error(void) { register int err_no asm("%rax"); __set_errno(-err_no); |