aboutsummaryrefslogtreecommitdiff
path: root/lib/libkse
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2001-04-03 22:25:39 +0000
committerIan Dowse <iedowse@FreeBSD.org>2001-04-03 22:25:39 +0000
commit92f5474235d675e6c80d87e36dfe853e6668f8b9 (patch)
treedb6d8caea3abc18c99559d566bafde840431bc0c /lib/libkse
parentc62292231005ff901a419f978d4853c673f129f8 (diff)
downloadsrc-92f5474235d675e6c80d87e36dfe853e6668f8b9.tar.gz
src-92f5474235d675e6c80d87e36dfe853e6668f8b9.zip
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
Notes
Notes: svn path=/head/; revision=75145
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/thread/thr_main_np.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_main_np.c b/lib/libkse/thread/thr_main_np.c
index 1ce336998f59..6ae7d1e2489a 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)