Sun Studio 12 build error

Building on Linux rh4, Sunstudio12

"Mutex.cc", line 18: Error: PTHREAD_MUTEX_RECURSIVE is not defined.

Looking at the Solaris 9, 10 manuals, this is a valid option for pthread_mutexattr_settype.

On Linux, this is contained inside

#ifdef __USE_UNIX98

in /usr/include/pthread.h

Suggestions?

[332 byte] By [Brett_Tiplitza] at [2007-11-27 0:35:28]
# 1
-D_XOPEN_SOURCE=500
SFVa at 2007-7-11 22:43:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
That did get me past the problem identified.
Brett_Tiplitza at 2007-7-11 22:43:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...