using boost::thread with Sun Studio C++ gives error

Hi,
I'm trying to compile a code which uses the boost thread library, but I
get the following error:
CC -library=stlport4 -features=tmplife -features=tmplrefstatic -mt -c -o
t t.cpp
"/opt/boost/include/boost/thread/pthread/mutex.hpp", line 142: Error:
The function "pthread_mutex_timedlock" must have a prototype.
"/opt/boost/include/boost/thread/pthread/mutex.hpp", line 142: Error:
The function "pthread_mutex_timedlock" must have a prototype.
"/opt/boost/include/boost/thread/detail/thread.hpp", line 344: Error:
boost::thread::thread(boost::thread&) is not accessible from
boost::move(boost::detail::thread_move_tboost::thread).
"/opt/boost/include/boost/thread/pthread/recursive_mutex.hpp", line 179:
Error: The function "pthread_mutex_timedlock" must have a prototype.
"/opt/boost/include/boost/thread/pthread/recursive_mutex.hpp", line 179:
Error: The function "pthread_mutex_timedlock" must have a prototype.
5 Error(s) detected.
make: *** [t] Error 5
the sample source code in question here just a single include:
#include
participants (1)
-
Maróy Ákos