summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-03-13 23:23:26 -0400
committerRich Felker <dalias@aerifal.cx>2019-03-13 23:23:26 -0400
commitc62dfe61611cee4b9b2667e1aec8a20385bc5c55 (patch)
tree2c44115739e04ade16e7afa75ff5cc715dbbb7ed /src/thread
parent2a03b0b518c91909bca8f0f97985656193db9fbe (diff)
downloadmusl-c62dfe61611cee4b9b2667e1aec8a20385bc5c55.tar.gz
fix namespace violation in dependencies of mtx_lock
commit 2de29bc994029b903a366b8a4a9f8c3c3ee2be90 left behind one reference to pthread_mutex_trylock. fixing this also improves code generation due to the namespace-safe version being hidde.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/pthread_mutex_timedlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_mutex_timedlock.c b/src/thread/pthread_mutex_timedlock.c
index b95af251..0f171c00 100644
--- a/src/thread/pthread_mutex_timedlock.c
+++ b/src/thread/pthread_mutex_timedlock.c
@@ -9,7 +9,7 @@ int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec
int type = m->_m_type;
int r, t, priv = (type & 128) ^ 128;
- r = pthread_mutex_trylock(m);
+ r = __pthread_mutex_trylock(m);
if (r != EBUSY) return r;
int spins = 100;