[OpenIndiana-discuss] SFE g++ and _RESTRICT_KYWD

raichoo raichoo at googlemail.com
Sun Dec 11 19:24:02 UTC 2011


Hi,

I gave building clang under openindiana a try and found out that g++ 4.6.1
seems to have some issues with the _RESTRICT_KYWD macro. Since LLVM
checks for posix spawn support building it fails like the following
code. Any thoughts on that?

Regards,
raichoo

#include<spawn.h>                                                               

extern  char  **environ;

int  main(int  argc,  char  **argv)
{
         return  0;
}


[raichoo at ayanami:~]:1058>  gcc test.c
[raichoo at ayanami:~]:1065>  g++ test.c
In file included from test.c:1:0:
/usr/include/spawn.h:73:14: error: expected ‘,’ or ‘...’ before ‘argv’
/usr/include/spawn.h:81:14: error: expected ‘,’ or ‘...’ before ‘argv’




More information about the OpenIndiana-discuss mailing list