summaryrefslogtreecommitdiff
path: root/src/thread/pthread_once.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_once.c')
-rw-r--r--src/thread/pthread_once.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/thread/pthread_once.c b/src/thread/pthread_once.c
index 2eb0f932..05ebe69c 100644
--- a/src/thread/pthread_once.c
+++ b/src/thread/pthread_once.c
@@ -6,7 +6,7 @@ static void undo(void *control)
__wake(control, 1, 1);
}
-int pthread_once(pthread_once_t *control, void (*init)(void))
+int __pthread_once(pthread_once_t *control, void (*init)(void))
{
static int waiters;
@@ -34,3 +34,5 @@ int pthread_once(pthread_once_t *control, void (*init)(void))
return 0;
}
}
+
+weak_alias(__pthread_once, pthread_once);