aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_switch_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_switch_np.c')
-rw-r--r--lib/libthr/thread/thr_switch_np.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_switch_np.c b/lib/libthr/thread/thr_switch_np.c
index 80cd34c15650..59a9a4c7e1a3 100644
--- a/lib/libthr/thread/thr_switch_np.c
+++ b/lib/libthr/thread/thr_switch_np.c
@@ -40,10 +40,13 @@
#include "thr_private.h"
-
__weak_reference(_pthread_switch_add_np, pthread_switch_add_np);
__weak_reference(_pthread_switch_delete_np, pthread_switch_delete_np);
+typedef void (*pthread_switch_routine_t)(pthread_t, pthread_t);
+int _pthread_switch_add_np(pthread_switch_routine_t routine);
+int _pthread_switch_delete_np(pthread_switch_routine_t routine);
+
int
_pthread_switch_add_np(pthread_switch_routine_t routine __unused)
{