summaryrefslogtreecommitdiffstats
path: root/fixincludes/tests/base
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-28 00:45:56 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-28 00:45:56 +0000
commita96763ff13bcc0b3cecee2beacda000818a1f02f (patch)
treef87c109dd8d9657647a201bf9aa0cb1d671b42db /fixincludes/tests/base
parentdb91ed9dec9435196e944268e7f83dcf82936f1d (diff)
downloadppe42-gcc-a96763ff13bcc0b3cecee2beacda000818a1f02f.tar.gz
ppe42-gcc-a96763ff13bcc0b3cecee2beacda000818a1f02f.zip
* inclhack.def (solaris_once_init_2): New fix.
* tests/base/pthread.h: Update. * fixincl.x: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117265 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests/base')
-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 8b7f97b0b9c..5f6adf3b23b 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);
OpenPOWER on IntegriCloud