mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
Check for visibility attribute.
This commit is contained in:
parent
be1960c6fd
commit
1ad5bec8cd
@ -48,7 +48,8 @@ int __libc_missing_rt_sigs;
|
|||||||
|
|
||||||
/* Using the hidden attribute here does not change the code but it
|
/* Using the hidden attribute here does not change the code but it
|
||||||
helps to avoid warnings. */
|
helps to avoid warnings. */
|
||||||
#if defined HAVE_HIDDEN && !defined HAVE_BROKEN_VISIBILITY_ATTRIBUTE
|
#if defined HAVE_HIDDEN && defined HAVE_VISIBILITY_ATTRIBUTE \
|
||||||
|
&& !defined HAVE_BROKEN_VISIBILITY_ATTRIBUTE
|
||||||
# ifdef __NR_rt_sigaction
|
# ifdef __NR_rt_sigaction
|
||||||
extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
|
extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
|
||||||
# endif
|
# endif
|
||||||
|
@ -41,7 +41,8 @@ extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbound
|
|||||||
|
|
||||||
/* Using the hidden attribute here does not change the code but it
|
/* Using the hidden attribute here does not change the code but it
|
||||||
helps to avoid warnings. */
|
helps to avoid warnings. */
|
||||||
#if defined HAVE_HIDDEN && !defined HAVE_BROKEN_VISIBILITY_ATTRIBUTE
|
#if defined HAVE_HIDDEN && defined HAVE_VISIBILITY_ATTRIBUTE \
|
||||||
|
&& !defined HAVE_BROKEN_VISIBILITY_ATTRIBUTE
|
||||||
extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
|
extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
|
||||||
#else
|
#else
|
||||||
static void restore_rt (void) asm ("__restore_rt");
|
static void restore_rt (void) asm ("__restore_rt");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user