diff options
author | jb <jb@FreeBSD.org> | 1998-04-29 09:02:16 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-04-29 09:02:16 +0000 |
commit | fe85f77293a79915e66ea00adaab7fd30f4cecfc (patch) | |
tree | 2d2ad8e5dcdb9955a1cafb709c8fa3c7baf6c8f8 /lib | |
parent | a7cf05f1b7fdbe279f55e190924a6a1bf14213ab (diff) | |
download | FreeBSD-src-fe85f77293a79915e66ea00adaab7fd30f4cecfc.zip FreeBSD-src-fe85f77293a79915e66ea00adaab7fd30f4cecfc.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/_spinlock_stub.c | 6 |
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 |