summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/inet/rpc/rpc_thread.c2
-rw-r--r--libc/misc/pthread/weaks.c16
2 files changed, 7 insertions, 11 deletions
diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c
index ba5350ec9..75a5d0f4d 100644
--- a/libc/inet/rpc/rpc_thread.c
+++ b/libc/inet/rpc/rpc_thread.c
@@ -35,7 +35,7 @@ __rpc_thread_destroy (void)
}
-extern int __pthread_once (pthread_once_t *__once_control,
+extern int weak_function __pthread_once (pthread_once_t *__once_control,
void (*__init_routine) (void));
# define __libc_once_define(CLASS, NAME) \
diff --git a/libc/misc/pthread/weaks.c b/libc/misc/pthread/weaks.c
index 1320433f3..90b4f5494 100644
--- a/libc/misc/pthread/weaks.c
+++ b/libc/misc/pthread/weaks.c
@@ -21,9 +21,9 @@
#include <limits.h>
#include <stdlib.h>
-extern int __pthread_return_0 __P ((void));
-extern int __pthread_return_1 __P ((void));
-extern void __pthread_return_void __P ((void));
+static int __pthread_return_0 __P ((void));
+static int __pthread_return_1 __P ((void));
+static void __pthread_return_void __P ((void));
/**********************************************************************/
/* Weaks for application/library use.
@@ -105,25 +105,21 @@ weak_alias (__pthread_return_0, __pthread_mutex_lock)
weak_alias (__pthread_return_0, __pthread_mutex_trylock)
weak_alias (__pthread_return_0, __pthread_mutex_unlock)
-/* Weaks used internally by the C library rpc code only. */
-weak_alias (__pthread_return_0, __pthread_once)
-weak_alias (__pthread_return_void, __pthread_initialize_minimal)
-
/**********************************************************************/
-int
+static int
__pthread_return_0 (void)
{
return 0;
}
-int
+static int
__pthread_return_1 (void)
{
return 1;
}
-void
+static void
__pthread_return_void (void)
{
}