From cc67d8ceca336c033d20ccecace04af22d9e1bc4 Mon Sep 17 00:00:00 2001 From: iedowse Date: Tue, 3 Apr 2001 22:25:39 +0000 Subject: Add a leading underscore to the pthread_main_np function name, and a "#pragma weak" directive linking the external symbol. This matches the other pthread_* definitions, and ensures that users of this function from within libc get the real version, not the stub. Suggested by: deischen Reviewed by: deischen, alfred --- lib/libkse/thread/thr_main_np.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libkse') diff --git a/lib/libkse/thread/thr_main_np.c b/lib/libkse/thread/thr_main_np.c index 1ce3369..6ae7d1e 100644 --- a/lib/libkse/thread/thr_main_np.c +++ b/lib/libkse/thread/thr_main_np.c @@ -34,8 +34,9 @@ /* * Provide the equivelant to Solaris thr_main() function */ +#pragma weak pthread_main_np=_pthread_main_np int -pthread_main_np() +_pthread_main_np() { if (!_thread_initial) -- cgit v1.1