diff options
author | Roland McGrath <roland@gnu.org> | 2002-10-15 08:38:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-10-15 08:38:41 +0000 |
commit | a7a2ea5a7188141aea4ae04be77f9b83b837649c (patch) | |
tree | 65837e9c23df3291990034d5e4e48911f450ae75 /sysdeps | |
parent | a89e49fd240a659c397fd9f0559f14fcde0a5605 (diff) | |
download | glibc-a7a2ea5a7188141aea4ae04be77f9b83b837649c.tar glibc-a7a2ea5a7188141aea4ae04be77f9b83b837649c.tar.gz glibc-a7a2ea5a7188141aea4ae04be77f9b83b837649c.tar.bz2 glibc-a7a2ea5a7188141aea4ae04be77f9b83b837649c.zip |
2002-10-14 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sigaction.c
[HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
extern using attribute_hidden instead of static, avoids warning.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/sigaction.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigaction.c b/sysdeps/unix/sysv/linux/x86_64/sigaction.c index c55dea885a..8fd9ce0e99 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sigaction.c +++ b/sysdeps/unix/sysv/linux/x86_64/sigaction.c @@ -39,7 +39,13 @@ extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded, struct kernel_sigaction *__unbounded, size_t); +/* Using the hidden attribute here does not change the code but it + helps to avoid warnings. */ +#if defined HAVE_HIDDEN && !defined HAVE_BROKEN_VISIBILITY_ATTRIBUTE +extern void restore_rt (void) asm ("__restore_rt") attribute_hidden; +#else static void restore_rt (void) asm ("__restore_rt"); +#endif /* If ACT is not NULL, change the action for SIG to *ACT. |