diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-01-24 13:03:38 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-01-24 13:03:38 +0000 |
| commit | e5106342c6de9cbe26c4827e4e29bae309cd8cfb (patch) | |
| tree | 5199387f09deaa21f12482317c165f815c4e8c2b /lib/libpthread/thread/thr_switch_np.c | |
| parent | f9447cd11209a5fb5ecef3f4cbe539e990f3b1bd (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_switch_np.c')
| -rw-r--r-- | lib/libpthread/thread/thr_switch_np.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_switch_np.c b/lib/libpthread/thread/thr_switch_np.c index 9b83545fdd7e..e999259d8050 100644 --- a/lib/libpthread/thread/thr_switch_np.c +++ b/lib/libpthread/thread/thr_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 |
