Re: [Patch] gio-standalone build fail with suncc because retrun value in void function

Alexander Larsson <[email protected]>
Newsgroups gmane.comp.gnome.vfs.general
Message-ID <[email protected]>
On Wed, 2007-11-07 at 17:01 +0900, Takao Fujiwara - Tokyo S/W Center
wrote:
> I think it can be resolved to set $CFLAGS instead of changing any codes on Solaris.
> 
> export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS"

I commited the patch before i saw this mail, since I sort of rely on you
guys to get the best approach on solaris.

However, i think the ideal solution is to have an autoconf check that
actually tries getpwuid_r and figures out how the arguments look. That
way it will build correctly on solaris independent on whether the user
specified _POSIX_PTHREAD_SEMANTICS or not, and it will work on other
OSes that have the same arguments as solaris has.

Anyone want to look into this?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.