summaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/pthread.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/tests/base/pthread.h b/fixincludes/tests/base/pthread.h
index b8366bfe51f..b1c4d517bce 100644
--- a/fixincludes/tests/base/pthread.h
+++ b/fixincludes/tests/base/pthread.h
@@ -56,6 +56,20 @@
#endif /* ALPHA_PTHREAD_INIT_CHECK */
+#if defined( GLIBC_MUTEX_INIT_CHECK )
+#define PTHREAD_MUTEX_INITIALIZER \
+ { { 0, 0, 0, 0, 0, 0 } }
+# if __WORDSIZE == 64
+# define PTHREAD_RWLOCK_INITIALIZER \
+ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
+# else
+# define PTHREAD_RWLOCK_INITIALIZER \
+ { { 0, 0, 0, 0, 0, 0, 0, 0 } }
+# endif
+#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
+#endif /* GLIBC_MUTEX_INIT_CHECK */
+
+
#if defined( PTHREAD_PAGE_SIZE_CHECK )
extern int __page_size;
#endif /* PTHREAD_PAGE_SIZE_CHECK */