diff options
author | deischen <deischen@FreeBSD.org> | 2001-04-10 04:19:21 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-04-10 04:19:21 +0000 |
commit | dd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch) | |
tree | f253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libpthread/thread/thr_mutex_protocol.c | |
parent | 3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff) | |
download | FreeBSD-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/libpthread/thread/thr_mutex_protocol.c')
-rw-r--r-- | lib/libpthread/thread/thr_mutex_protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_mutex_protocol.c b/lib/libpthread/thread/thr_mutex_protocol.c index 1ad9b15..4d020d6 100644 --- a/lib/libpthread/thread/thr_mutex_protocol.c +++ b/lib/libpthread/thread/thr_mutex_protocol.c @@ -37,8 +37,8 @@ #include <pthread.h> #include "pthread_private.h" -#pragma weak pthread_mutexattr_getprotocol=_pthread_mutexattr_getprotocol -#pragma weak pthread_mutexattr_setprotocol=_pthread_mutexattr_setprotocol +__weak_reference(_pthread_mutexattr_getprotocol, pthread_mutexattr_getprotocol); +__weak_reference(_pthread_mutexattr_setprotocol, pthread_mutexattr_setprotocol); int _pthread_mutexattr_getprotocol(pthread_mutexattr_t *mattr, int *protocol) |