summaryrefslogtreecommitdiff
path: root/src/signal/sigsetjmp.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-04-02 19:32:57 -0400
committerRich Felker <dalias@aerifal.cx>2014-04-02 19:32:57 -0400
commitb9b2db2f374bce907fa5015c9cf63205054f2356 (patch)
tree217f137cc62afba9e6c1d859a31abb2eecff6231 /src/signal/sigsetjmp.c
parent141d3b5c2a93dd48096a13ce051d09eaf3ec0b4a (diff)
downloadmusl-b9b2db2f374bce907fa5015c9cf63205054f2356.tar.gz
musl-b9b2db2f374bce907fa5015c9cf63205054f2356.tar.bz2
musl-b9b2db2f374bce907fa5015c9cf63205054f2356.tar.xz
musl-b9b2db2f374bce907fa5015c9cf63205054f2356.zip
add __sigsetjmp ABI-compat alias for sigsetjmp
Diffstat (limited to 'src/signal/sigsetjmp.c')
-rw-r--r--src/signal/sigsetjmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/signal/sigsetjmp.c b/src/signal/sigsetjmp.c
index cb2257f0..1bbe1a0b 100644
--- a/src/signal/sigsetjmp.c
+++ b/src/signal/sigsetjmp.c
@@ -1,5 +1,6 @@
#include <setjmp.h>
#include <signal.h>
+#include "libc.h"
/* !!! This function will not work unless the compiler performs
* tail call optimization. Machine-specific asm versions should
@@ -12,3 +13,5 @@ int sigsetjmp(sigjmp_buf buf, int save)
pthread_sigmask(SIG_SETMASK, 0, (sigset_t *)buf->__ss);
return setjmp(buf);
}
+
+weak_alias(sigsetjmp, __sigsetjmp);