diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2006-09-29 19:14:58 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2006-09-29 19:14:58 +0000 |
commit | a77d42cf21045ccdc2dfe83082fd56f4906ef36c (patch) | |
tree | a90431ae9f443273785d6aa6f3f715b217aa2583 /fixincludes/tests/base/pthread.h | |
parent | 504652cb4501b29e69030425430013c5b533bbbf (diff) | |
download | gcc-a77d42cf21045ccdc2dfe83082fd56f4906ef36c.zip gcc-a77d42cf21045ccdc2dfe83082fd56f4906ef36c.tar.gz gcc-a77d42cf21045ccdc2dfe83082fd56f4906ef36c.tar.bz2 |
inclhack.def (solaris_mutex_init_2): Update for Solaris9.
* inclhack.def (solaris_mutex_init_2): Update for Solaris9.
Prevent it from running on solaris10 or later.
(solaris_once_init_2): Fix comment.
* tests/base/pthread.h: Update.
* fixincl.x: Regenerate.
From-SVN: r117310
Diffstat (limited to 'fixincludes/tests/base/pthread.h')
-rw-r--r-- | fixincludes/tests/base/pthread.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/tests/base/pthread.h b/fixincludes/tests/base/pthread.h index 5f6adf3..b8366bf 100644 --- a/fixincludes/tests/base/pthread.h +++ b/fixincludes/tests/base/pthread.h @@ -94,6 +94,20 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask); #else #define PTHREAD_COND_INITIALIZER {{{0}, 0}, {0}} /* DEFAULTCV */ #endif +#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) +#define PTHREAD_MUTEX_INITIALIZER /* = DEFAULTMUTEX */ \ + {{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, 0} +#else +#define PTHREAD_MUTEX_INITIALIZER /* = DEFAULTMUTEX */ \ + {{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, {0}} +#endif +#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) +#define PTHREAD_COND_INITIALIZER /* = DEFAULTCV */ \ + {{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, 0} +#else +#define PTHREAD_COND_INITIALIZER /* = DEFAULTCV */ \ + {{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, {0}} +#endif #endif /* SOLARIS_MUTEX_INIT_2_CHECK */ |