summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_switch_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_switch_np.c')
-rw-r--r--lib/libc_r/uthread/uthread_switch_np.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_switch_np.c b/lib/libc_r/uthread/uthread_switch_np.c
index 9b83545..e999259 100644
--- a/lib/libc_r/uthread/uthread_switch_np.c
+++ b/lib/libc_r/uthread/uthread_switch_np.c
@@ -32,14 +32,16 @@
* $FreeBSD$
*/
#include <errno.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include <pthread_np.h>
#include "pthread_private.h"
+#pragma weak pthread_switch_add_np=_pthread_switch_add_np
+#pragma weak pthread_switch_delete_np=_pthread_switch_delete_np
+
int
-pthread_switch_add_np(pthread_switch_routine_t routine)
+_pthread_switch_add_np(pthread_switch_routine_t routine)
{
int ret = 0;
@@ -54,7 +56,7 @@ pthread_switch_add_np(pthread_switch_routine_t routine)
}
int
-pthread_switch_delete_np(pthread_switch_routine_t routine)
+_pthread_switch_delete_np(pthread_switch_routine_t routine)
{
int ret = 0;
@@ -67,4 +69,3 @@ pthread_switch_delete_np(pthread_switch_routine_t routine)
return(ret);
}
-#endif
OpenPOWER on IntegriCloud