diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-04-10 04:11:50 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-04-10 04:11:50 +0000 |
| commit | 54fd7f685f42878f99a2e2d8428d084f9b1125ab (patch) | |
| tree | 74cea16b93a3e49b3b5d3f6783f0654dee7033fc /lib/libc/gen/_spinlock_stub.c | |
| parent | 278d1a20e81d770d182c0e9e821bf566c66e14fc (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/_spinlock_stub.c')
| -rw-r--r-- | lib/libc/gen/_spinlock_stub.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/_spinlock_stub.c b/lib/libc/gen/_spinlock_stub.c index 071fc206e53c..78c8dea496f5 100644 --- a/lib/libc/gen/_spinlock_stub.c +++ b/lib/libc/gen/_spinlock_stub.c @@ -41,9 +41,10 @@ * Declare weak definitions in case the application is not linked * with libpthread. */ -#pragma weak _atomic_lock=_atomic_lock_stub -#pragma weak _spinlock=_spinlock_stub -#pragma weak _spinlock_debug=_spinlock_debug_stub +__weak_reference(_atomic_lock_stub, _atomic_lock); +__weak_reference(_spinlock_stub, _spinlock); +__weak_reference(_spinlock_debug_stub, _spinlock_debug); + /* * This function is a stub for the _atomic_lock function in libpthread. |
