aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2006-09-28 00:45:56 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2006-09-28 00:45:56 +0000
commit0a1f02df6b895c5c4cf975b0a22f22dec7e25741 (patch)
treef87c109dd8d9657647a201bf9aa0cb1d671b42db /fixincludes/tests
parentfe2c3afcf478f0b26ef5930069be45ba0983fdb3 (diff)
downloadgcc-0a1f02df6b895c5c4cf975b0a22f22dec7e25741.zip
gcc-0a1f02df6b895c5c4cf975b0a22f22dec7e25741.tar.gz
gcc-0a1f02df6b895c5c4cf975b0a22f22dec7e25741.tar.bz2
inclhack.def (solaris_once_init_2): New fix.
* inclhack.def (solaris_once_init_2): New fix. * tests/base/pthread.h: Update. * fixincl.x: Regenerate. From-SVN: r117265
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/pthread.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixincludes/tests/base/pthread.h b/fixincludes/tests/base/pthread.h
index 8b7f97b..5f6adf3 100644
--- a/fixincludes/tests/base/pthread.h
+++ b/fixincludes/tests/base/pthread.h
@@ -109,10 +109,25 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
#if defined( SOLARIS_ONCE_INIT_1_CHECK )
#pragma ident "@(#)pthread.h 1.37 04/09/28 SMI"
+#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
#define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
+#else
+#define PTHREAD_ONCE_INIT {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
+#endif
#endif /* SOLARIS_ONCE_INIT_1_CHECK */
+#if defined( SOLARIS_ONCE_INIT_2_CHECK )
+#ident "@(#)pthread.h 1.26 98/04/12 SMI"
+#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
+#define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
+#else
+#define PTHREAD_ONCE_INIT {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
+#endif
+
+#endif /* SOLARIS_ONCE_INIT_2_CHECK */
+
+
#if defined( THREAD_KEYWORD_CHECK )
extern int pthread_create (pthread_t *__restrict __thr,
extern int pthread_kill (pthread_t __thr, int __signo);