aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/sigpause.c4
-rw-r--r--sysdeps/posix/sigpause.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/generic/sigpause.c b/sysdeps/generic/sigpause.c
index 3906dbdfe6..8f63b87003 100644
--- a/sysdeps/generic/sigpause.c
+++ b/sysdeps/generic/sigpause.c
@@ -31,6 +31,7 @@ stub_warning (__sigpause)
libc_hidden_def (__sigpause)
int
+__attribute__ ((weak))
__default_sigpause (int mask)
{
__set_errno (ENOSYS);
@@ -42,7 +43,8 @@ stub_warning (sigpause)
int
-__xpg_sigpause (int sig)
+__attribute ((weak))
+__xpg___sigpause (int sig)
{
__set_errno (ENOSYS);
return -1;
diff --git a/sysdeps/posix/sigpause.c b/sysdeps/posix/sigpause.c
index f764cba0fc..dba6912e90 100644
--- a/sysdeps/posix/sigpause.c
+++ b/sysdeps/posix/sigpause.c
@@ -48,6 +48,7 @@ libc_hidden_def (__sigpause)
standards demand it. The version which is a bit more reasonable is
the BSD version. So make this the default. */
int
+__attribute__ ((weak))
__default_sigpause (int mask)
{
return __sigpause (mask, 0);
@@ -61,6 +62,7 @@ strong_alias (__default_sigpause, __libc_sigpause)
standards demand it. The version which is a bit more reasonable is
the BSD version. So make this the default. */
int
+__attribute__ ((weak))
__xpg_sigpause (int sig)
{
return __sigpause (sig, 1);