]> sourceware.org Git - glibc.git/commitdiff
2002-10-14 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Tue, 15 Oct 2002 08:38:41 +0000 (08:38 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 15 Oct 2002 08:38:41 +0000 (08:38 +0000)
* 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.

sysdeps/unix/sysv/linux/x86_64/sigaction.c

index c55dea885a9c285a3998e25b4ac3e15ffa5f18ec..8fd9ce0e99d647c99188fb843d872554385c11da 100644 (file)
 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.
This page took 0.04015 seconds and 5 git commands to generate.