summaryrefslogtreecommitdiff
path: root/tests/test-pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pthread.c')
-rw-r--r--tests/test-pthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-pthread.c b/tests/test-pthread.c
index f7e89c66..a78e714e 100644
--- a/tests/test-pthread.c
+++ b/tests/test-pthread.c
@@ -30,8 +30,10 @@ pthread_once_t t3 = PTHREAD_ONCE_INIT;
pthread_mutex_t t4 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutexattr_t t5;
+#if GNULIB_TEST_PTHREAD_RWLOCK
pthread_rwlock_t t6 = PTHREAD_RWLOCK_INITIALIZER;
pthread_rwlockattr_t t7;
+#endif
pthread_cond_t t8 = PTHREAD_COND_INITIALIZER;
pthread_condattr_t t9;