diff options
Diffstat (limited to 'nptl/tst-rwlock9.c')
-rw-r--r-- | nptl/tst-rwlock9.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl/tst-rwlock9.c b/nptl/tst-rwlock9.c index 5b6b3001b2..adbf67224d 100644 --- a/nptl/tst-rwlock9.c +++ b/nptl/tst-rwlock9.c @@ -35,7 +35,11 @@ #define TIMEOUT 1000000 #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 * |