diff options
author | Ian Dowse <iedowse@FreeBSD.org> | 2001-04-03 22:25:39 +0000 |
---|---|---|
committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-04-03 22:25:39 +0000 |
commit | 92f5474235d675e6c80d87e36dfe853e6668f8b9 (patch) | |
tree | db6d8caea3abc18c99559d566bafde840431bc0c /lib/libkse | |
parent | c62292231005ff901a419f978d4853c673f129f8 (diff) | |
download | src-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.c | 3 |
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) |