Make pthread_mutexattr_setkind_np be an alias of__pthread_mutexattr_settype.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@172 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_libpthread.c b/vg_libpthread.c
index 171e283..4f0bf99 100644
--- a/vg_libpthread.c
+++ b/vg_libpthread.c
@@ -1461,3 +1461,10 @@
    //    char* str = "_pthread_cleanup_pop_restore\n";
    //    write(2, str, strlen(str));
 }
+
+
+/* This doesn't seem to be needed to simulate libpthread.so's external
+   interface, but many people complain about its absence. */
+
+strong_alias(__pthread_mutexattr_settype, __pthread_mutexattr_setkind_np)
+weak_alias(__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np)