summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_sig.c')
-rw-r--r--lib/libthr/thread/thr_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c
index 51479af..a9f7f83 100644
--- a/lib/libthr/thread/thr_sig.c
+++ b/lib/libthr/thread/thr_sig.c
@@ -113,7 +113,7 @@ _pthread_kill(pthread_t pthread, int sig)
* User thread signal handler wrapper.
*/
void
-_thread_sig_wrapper(int sig, siginfo_t *info, ucontext_t *context)
+_thread_sig_wrapper(int sig, siginfo_t *info, void *context)
{
struct pthread_state_data psd;
__siginfohandler_t *handler;
@@ -149,7 +149,7 @@ _thread_sig_wrapper(int sig, siginfo_t *info, ucontext_t *context)
GIANT_UNLOCK(curthread);
handler = (__siginfohandler_t *)
_thread_sigact[sig - 1].sa_handler;
- handler(sig, info, context);
+ handler(sig, info, (ucontext_t *)context);
GIANT_LOCK(curthread);
}
OpenPOWER on IntegriCloud