summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2013-12-12 23:14:51 (GMT)
committerJason Evans <jasone@canonware.com>2013-12-12 23:14:51 (GMT)
commita2be4779b19a491a5686cfda067f98d7d70a9056 (patch)
treeca56f0f27e36b295b13a1d29a705490f20dd2d01
parentdfecadf4b28da0d582357b5a5180b1cc8d57c748 (diff)
downloadjemalloc-a2be4779b19a491a5686cfda067f98d7d70a9056.zip
jemalloc-a2be4779b19a491a5686cfda067f98d7d70a9056.tar.gz
jemalloc-a2be4779b19a491a5686cfda067f98d7d70a9056.tar.bz2
Fix a malloc_mutex dependency in mtx.
-rw-r--r--test/src/mtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/mtx.c b/test/src/mtx.c
index 8d9e0ca..41b95d5 100644
--- a/test/src/mtx.c
+++ b/test/src/mtx.c
@@ -14,7 +14,7 @@ mtx_init(mtx_t *mtx)
if (pthread_mutexattr_init(&attr) != 0)
return (true);
- pthread_mutexattr_settype(&attr, MALLOC_MUTEX_TYPE);
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT);
if (pthread_mutex_init(&mtx->lock, &attr) != 0) {
pthread_mutexattr_destroy(&attr);
return (true);