Index: gen/_once_stub.c =================================================================== --- gen/_once_stub.c (revision 199606) +++ gen/_once_stub.c (working copy) @@ -37,7 +37,7 @@ * This implements pthread_once() for the single-threaded case. It is * non-static so that it can be used by _pthread_stubs.c. */ -int +static int _libc_once(pthread_once_t *once_control, void (*init_routine)(void)) { Index: gen/_pthread_stubs.c =================================================================== --- gen/_pthread_stubs.c (revision 199606) +++ gen/_pthread_stubs.c (working copy) @@ -105,7 +105,7 @@ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_MUTEX_LOCK */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_MUTEX_TRYLOCK */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_MUTEX_UNLOCK */ - {PJT_DUAL_ENTRY(_libc_once)}, /* PJT_ONCE */ + {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_ONCE */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_DESTROY */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_INIT */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_RDLOCK */ Index: include/libc_private.h =================================================================== --- include/libc_private.h (revision 199606) +++ include/libc_private.h (working copy) @@ -152,7 +152,6 @@ * and multi-threaded applications. */ int _once(pthread_once_t *, void (*)(void)); -int _libc_once(pthread_once_t *, void (*)(void)); /* * Set the TLS thread pointer