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_once.c | |
| parent | f9447cd11209a5fb5ecef3f4cbe539e990f3b1bd (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_once.c')
| -rw-r--r-- | lib/libpthread/thread/thr_once.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_once.c b/lib/libpthread/thread/thr_once.c index d7bb494b6741..dde54743deac 100644 --- a/lib/libpthread/thread/thr_once.c +++ b/lib/libpthread/thread/thr_once.c @@ -31,12 +31,13 @@ * * $FreeBSD$ */ -#ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" +#pragma weak pthread_once=_pthread_once + int -pthread_once(pthread_once_t * once_control, void (*init_routine) (void)) +_pthread_once(pthread_once_t * once_control, void (*init_routine) (void)) { if (once_control->state == PTHREAD_NEEDS_INIT) { if (_thread_initial == NULL) @@ -50,4 +51,3 @@ pthread_once(pthread_once_t * once_control, void (*init_routine) (void)) } return (0); } -#endif |
