On Sun, Oct 17, 2010 at 05:52:34PM +1300, Mark Davies wrote: | On Sunday 17 October 2010 17:06:11 Thor Lancelot Simon wrote: | > On Sun, Oct 17, 2010 at 04:16:59PM +1300, Mark Davies wrote: | > > The 4.5.2 kdelibs unconditionally tries to call | > > pthread_mutexattr_setpshared(), which appears to be in the posix | > > standard | > | > No. It's an optional extension. | | So is there a particular define that the code should be testing for before | assuming the function exists? I think that you're supposed to be able to use _POSIX_THREAD_PROCESS_SHARED from <unistd.h> or from the CLI, getconf _POSIX_THREAD_PROCESS_SHARED. However, certain platforms such as Mac OS X return a value for this but don't actually implement the feature. I have some autoconf tests which can detect if PTHREAD_PROCESS_SHARED is available and functional, if you're interested. cheers, Luke.
Attachment:
pgp3yh0CizYmT.pgp
Description: PGP signature