about summary refs log tree commit diff
path: root/nptl/tst-rwlock8.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-rwlock8.c')
-rw-r--r--nptl/tst-rwlock8.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl/tst-rwlock8.c b/nptl/tst-rwlock8.c
index ad433bb4a5..7eeaea8852 100644
--- a/nptl/tst-rwlock8.c
+++ b/nptl/tst-rwlock8.c
@@ -33,7 +33,11 @@
 
 #define DELAY   1000000
 
-static pthread_rwlock_t lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP;
+#ifndef INIT
+# define INIT PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP
+#endif
+
+static pthread_rwlock_t lock = INIT;
 
 
 static void *