diff options
author | Albert Chin-A-Young <china@thewrittenword.com> | 2003-03-29 21:07:21 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2003-03-29 21:07:21 +0000 |
commit | ce4a8f7d84f5688bce84a545ab467371d7212715 (patch) | |
tree | 6bf4ef8d23770812be347b4bc7b648dd20c5b5fe /gcc/fixinc/inclhack.def | |
parent | 44fc3a6f54fac6234b15e1292ac61198a2e5e40d (diff) | |
download | gcc-ce4a8f7d84f5688bce84a545ab467371d7212715.zip gcc-ce4a8f7d84f5688bce84a545ab467371d7212715.tar.gz gcc-ce4a8f7d84f5688bce84a545ab467371d7212715.tar.bz2 |
Accommodate Solaris 2.5.1 in solaris_mutex_init_1 fix
From-SVN: r65022
Diffstat (limited to 'gcc/fixinc/inclhack.def')
-rw-r--r-- | gcc/fixinc/inclhack.def | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 5ceadfb..763df48 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2057,14 +2057,15 @@ fix = { /* - * Sun Solaris 2.6 defines PTHREAD_{MUTEX|COND}_INITIALIZER incorrectly, - * so we replace them with versions that correspond to the definition. We - * also explicitly name this fix "1" and the next fix "2" because this one - * does not deal with the last field. This fix needs to run before the next. + * Sun Solaris 2.5.1, 2.6 defines PTHREAD_{MUTEX|COND}_INITIALIZER + * incorrectly, so we replace them with versions that correspond to + * the definition. We also explicitly name this fix "1" and the next + * fix "2" because this one does not deal with the last field. This + * fix needs to run before the next. */ fix = { hackname = solaris_mutex_init_1; - select = '@\(#\)pthread.h' "[ \t]+1.1[0-9][ \t]+97/[0-9/]+ SMI"; + select = '@\(#\)pthread.h' "[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI"; files = pthread.h; sed = "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n" "/define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/"; |