mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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.
This commit is contained in:
@ -39,7 +39,13 @@
|
|||||||
extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
|
extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
|
||||||
struct kernel_sigaction *__unbounded, size_t);
|
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");
|
static void restore_rt (void) asm ("__restore_rt");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* If ACT is not NULL, change the action for SIG to *ACT.
|
/* If ACT is not NULL, change the action for SIG to *ACT.
|
||||||
|
Reference in New Issue
Block a user