summaryrefslogtreecommitdiff
path: root/fixincludes/tests/base
diff options
context:
space:
mode:
authorUros Bizjak <uros@kss-loka.si>2006-10-01 07:47:33 +0200
committerUros Bizjak <uros@gcc.gnu.org>2006-10-01 07:47:33 +0200
commitf6f7aabcd65e1b80d70e7919c334b97934629773 (patch)
treea45e7b9bb89be3197d95776b3f0bc2349489a9f6 /fixincludes/tests/base
parentda1e2517fa43519a38a32be959acccafd7f67f02 (diff)
downloadgcc-f6f7aabcd65e1b80d70e7919c334b97934629773.tar.gz
inclhack.def (pthread_mutex_init): New fix.
* inclhack.def (pthread_mutex_init): New fix. * tests/base/pthread.h: Update. * fixincl.x: Regenerate. From-SVN: r117343
Diffstat (limited to 'fixincludes/tests/base')
-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 */