summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-04-03 22:25:39 +0000
committeriedowse <iedowse@FreeBSD.org>2001-04-03 22:25:39 +0000
commitcc67d8ceca336c033d20ccecace04af22d9e1bc4 (patch)
tree4ada7f8f0969f3284e02256333b1885f0f21d4c1 /lib/libkse
parent860771198c0638c98c2c310be1a248d4d65a9dff (diff)
downloadFreeBSD-src-cc67d8ceca336c033d20ccecace04af22d9e1bc4.zip
FreeBSD-src-cc67d8ceca336c033d20ccecace04af22d9e1bc4.tar.gz
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
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 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)
OpenPOWER on IntegriCloud