summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/_spinlock_stub.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/_spinlock_stub.c b/lib/libc/gen/_spinlock_stub.c
index bea4d2b..5314d85 100644
--- a/lib/libc/gen/_spinlock_stub.c
+++ b/lib/libc/gen/_spinlock_stub.c
@@ -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
OpenPOWER on IntegriCloud