summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_mattr_kind_np.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_mattr_kind_np.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_mattr_kind_np.c')
-rw-r--r--lib/libkse/thread/thr_mattr_kind_np.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkse/thread/thr_mattr_kind_np.c b/lib/libkse/thread/thr_mattr_kind_np.c
index 5ad7928..04db2a0 100644
--- a/lib/libkse/thread/thr_mattr_kind_np.c
+++ b/lib/libkse/thread/thr_mattr_kind_np.c
@@ -35,10 +35,10 @@
#include <pthread.h>
#include "pthread_private.h"
-#pragma weak pthread_mutexattr_setkind_np=_pthread_mutexattr_setkind_np
-#pragma weak pthread_mutexattr_getkind_np=_pthread_mutexattr_getkind_np
-#pragma weak pthread_mutexattr_gettype=_pthread_mutexattr_gettype
-#pragma weak pthread_mutexattr_settype=_pthread_mutexattr_settype
+__weak_reference(_pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np);
+__weak_reference(_pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np);
+__weak_reference(_pthread_mutexattr_gettype, pthread_mutexattr_gettype);
+__weak_reference(_pthread_mutexattr_settype, pthread_mutexattr_settype);
int
_pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind)
OpenPOWER on IntegriCloud