Add support for testing adaptive mutexes.
[kopensolaris-gnu/glibc.git] / nptl / tst-mutex7.c
index 183fd10..a9b9f31 100644 (file)
 #include <time.h>
 
 
-static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
+#ifndef INIT
+# define INIT PTHREAD_MUTEX_INITIALIZER
+#endif
+
+
+static pthread_mutex_t lock = INIT;
 
 
 #define ROUNDS 1000