about summary refs log tree commit diff
path: root/nptl/tst-mutex7.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-mutex7.c')
-rw-r--r--nptl/tst-mutex7.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nptl/tst-mutex7.c b/nptl/tst-mutex7.c
index 183fd10f82..a9b9f318cb 100644
--- a/nptl/tst-mutex7.c
+++ b/nptl/tst-mutex7.c
@@ -22,7 +22,12 @@
 #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