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:
John Birrell 1998-04-29 09:02:16 +00:00
parent dda6b17151
commit f0f62729ee

View File

@ -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