diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-04-03 22:25:39 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-04-03 22:25:39 +0000 |
commit | cc67d8ceca336c033d20ccecace04af22d9e1bc4 (patch) | |
tree | 4ada7f8f0969f3284e02256333b1885f0f21d4c1 /lib/libpthread/thread/thr_main_np.c | |
parent | 860771198c0638c98c2c310be1a248d4d65a9dff (diff) | |
download | FreeBSD-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/libpthread/thread/thr_main_np.c')
-rw-r--r-- | lib/libpthread/thread/thr_main_np.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_main_np.c b/lib/libpthread/thread/thr_main_np.c index 1ce3369..6ae7d1e 100644 --- a/lib/libpthread/thread/thr_main_np.c +++ b/lib/libpthread/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) |