diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-14 23:18:20 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-14 23:18:20 +0000 |
commit | ae7377cea8df3d2f2c122826f3df379786d719f3 (patch) | |
tree | 177f423d5dd4706141f7a94e4882644b59b502db /libc/signal/sigwait.c | |
parent | 497e902f95e415efabfa048ab750a89edbe4370f (diff) |
Hide internally used symbols, use weak_alias for raise/sigwait, as they could be in libpthread too
Diffstat (limited to 'libc/signal/sigwait.c')
-rw-r--r-- | libc/signal/sigwait.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c index 9cd2b6d12..a3d43df19 100644 --- a/libc/signal/sigwait.c +++ b/libc/signal/sigwait.c @@ -22,7 +22,8 @@ #include <signal.h> #include <string.h> -int sigwait (const sigset_t *set, int *sig) +#undef sigwait +int attribute_hidden __sigwait (const sigset_t *set, int *sig) { int ret = 1; if ((ret = sigwaitinfo(set, NULL)) != -1) { @@ -31,3 +32,6 @@ int sigwait (const sigset_t *set, int *sig) } return 1; } + +/* psm: keep this weak, because the one in libpthread.so could overwrite it */ +weak_alias(__sigwait, sigwait) |