aboutsummaryrefslogtreecommitdiff
path: root/lib/libkse/thread/thr_mutex_protocol.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2006-03-13 00:59:51 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2006-03-13 00:59:51 +0000
commite62165c8b0f7d6452c0033127a0fd8ad1d9e34d3 (patch)
tree0ff38bc0c45640883ff06a668902f099c9ff8641 /lib/libkse/thread/thr_mutex_protocol.c
parent855761d5db4349e3c5b6d89c8a3cd31e6988f523 (diff)
downloadsrc-e62165c8b0f7d6452c0033127a0fd8ad1d9e34d3.tar.gz
src-e62165c8b0f7d6452c0033127a0fd8ad1d9e34d3.zip
Add compatibility symbol maps. libpthread (.so.1 and .so.2)
used LIBTHREAD_1_0 as its version definition, but now needs to define its symbols in the same namespace used by libc. The compatibility hooks allows you to use libraries and binaries built and linked to libpthread before libc was built with symbol versioning. The shims can be removed if libpthread is given a version bump. Reviewed by: davidxu
Notes
Notes: svn path=/head/; revision=156611
Diffstat (limited to 'lib/libkse/thread/thr_mutex_protocol.c')
-rw-r--r--lib/libkse/thread/thr_mutex_protocol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_mutex_protocol.c b/lib/libkse/thread/thr_mutex_protocol.c
index 9f0f262667d8..9e3e46b01385 100644
--- a/lib/libkse/thread/thr_mutex_protocol.c
+++ b/lib/libkse/thread/thr_mutex_protocol.c
@@ -37,6 +37,11 @@
#include <pthread.h>
#include "thr_private.h"
+LT10_COMPAT_PRIVATE(_pthread_mutexattr_getprotocol);
+LT10_COMPAT_DEFAULT(pthread_mutexattr_getprotocol);
+LT10_COMPAT_PRIVATE(_pthread_mutexattr_setprotocol);
+LT10_COMPAT_DEFAULT(pthread_mutexattr_setprotocol);
+
__weak_reference(_pthread_mutexattr_getprotocol, pthread_mutexattr_getprotocol);
__weak_reference(_pthread_mutexattr_setprotocol, pthread_mutexattr_setprotocol);