Stubs are required in libc so that it can be used with libpthread
(and kernel threads), but weak symbols and non-weak symbols of the same name built into libc_r result in unpredictable linking.
This commit is contained in:
parent
dda6b17151
commit
f0f62729ee
@ -29,11 +29,14 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: _spinlock_stub.c,v 1.1 1998/03/09 06:46:21 jb Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* Don't build these stubs into libc_r: */
|
||||
#ifndef _THREAD_SAFE
|
||||
#include "spinlock.h"
|
||||
|
||||
/*
|
||||
@ -58,3 +61,4 @@ void
|
||||
_atomic_unlock_stub(long *lck)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user