summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/x86_64
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
commit05e75260d6952308d7c865ff67c0e3678b7ba935 (patch)
treeac1a5d0ab7904783917b52ffa5489e8367743ff7 /libc/sysdeps/linux/x86_64
parent2fec342738cefe71910e8e8ab8636accfc5867bc (diff)
Get rid of missing prototype warnings
Diffstat (limited to 'libc/sysdeps/linux/x86_64')
-rw-r--r--libc/sysdeps/linux/x86_64/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/x86_64/sigaction.c4
2 files changed, 5 insertions, 2 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);
diff --git a/libc/sysdeps/linux/x86_64/sigaction.c b/libc/sysdeps/linux/x86_64/sigaction.c
index 63d146136..b8d3861a4 100644
--- a/libc/sysdeps/linux/x86_64/sigaction.c
+++ b/libc/sysdeps/linux/x86_64/sigaction.c
@@ -33,7 +33,9 @@
/* We do not globally define the SA_RESTORER flag so do it here. */
#define SA_RESTORER 0x04000000
-#if defined __NR_rt_sigaction
+extern __typeof(sigaction) __libc_sigaction;
+
+#ifdef __NR_rt_sigaction
/* Using the hidden attribute here does not change the code but it
helps to avoid warnings. */
extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;