Re: [fixincludes] Fix posix_spawn* declarations in Solaris (PR c++/49347)

2011-07-25 Thread Rainer Orth
Hi Bruce, >> some-function(char *const argv[_RESTRICT_KYWD], ...) > > looks pretty broken to me. How would it work with plain gcc? no idea, but both gcc -std=c99 and Sun Studio cc -xc99 do accept it. > Anyway, editing the _RESTRICT_KYWD into the correct place looks > correct to me, and I'm sure

Re: [fixincludes] Fix posix_spawn* declarations in Solaris (PR c++/49347)

2011-07-25 Thread Bruce Korb
On 07/25/11 08:17, Rainer Orth wrote: As discussed in the PR, the Solaris 10+ header needs a fix to make it work with g++. The following patch implements it. It passed a i386-pc-solaris2.11 bootstrap without regressions and make check in fixincludes works without failures. Ok for mainline?

[fixincludes] Fix posix_spawn* declarations in Solaris (PR c++/49347)

2011-07-25 Thread Rainer Orth
As discussed in the PR, the Solaris 10+ header needs a fix to make it work with g++. The following patch implements it. It passed a i386-pc-solaris2.11 bootstrap without regressions and make check in fixincludes works without failures. Ok for mainline? Thanks. Rainer diff --git a/fix