summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_cond.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
committerdeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
commitdd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch)
treef253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libkse/thread/thr_cond.c
parent3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff)
downloadFreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.zip
FreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.tar.gz
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. Suggested by: bde
Diffstat (limited to 'lib/libkse/thread/thr_cond.c')
-rw-r--r--lib/libkse/thread/thr_cond.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libkse/thread/thr_cond.c b/lib/libkse/thread/thr_cond.c
index 6f2c509..ea8215d 100644
--- a/lib/libkse/thread/thr_cond.c
+++ b/lib/libkse/thread/thr_cond.c
@@ -44,12 +44,12 @@ static inline pthread_t cond_queue_deq(pthread_cond_t);
static inline void cond_queue_remove(pthread_cond_t, pthread_t);
static inline void cond_queue_enq(pthread_cond_t, pthread_t);
-#pragma weak pthread_cond_init=_pthread_cond_init
-#pragma weak pthread_cond_destroy=_pthread_cond_destroy
-#pragma weak pthread_cond_wait=_pthread_cond_wait
-#pragma weak pthread_cond_timedwait=_pthread_cond_timedwait
-#pragma weak pthread_cond_signal=_pthread_cond_signal
-#pragma weak pthread_cond_broadcast=_pthread_cond_broadcast
+__weak_reference(_pthread_cond_init, pthread_cond_init);
+__weak_reference(_pthread_cond_destroy, pthread_cond_destroy);
+__weak_reference(_pthread_cond_wait, pthread_cond_wait);
+__weak_reference(_pthread_cond_timedwait, pthread_cond_timedwait);
+__weak_reference(_pthread_cond_signal, pthread_cond_signal);
+__weak_reference(_pthread_cond_broadcast, pthread_cond_broadcast);
/* Reinitialize a condition variable to defaults. */
OpenPOWER on IntegriCloud