View Single Post
  #1 (permalink)  
Old 02-25-2003
Ivan Ivan is offline
Registered User
 
 
Join Date: Feb 2003
Location: Helsinki, Finland
Posts: 15
Ice-1.0.1/C++/compilation

Hi,

"changes" say

- For posix threads, PTHREAD_MUTEX_RECURSIVE_NP is now only used if __linux__ is defined. Otherwise, PTHREAD_MUTEX_RECURSIVE is used.

But this code is commented in RecMutex.cpp, and there is another code which uses just PTHREAD_MUTEX_RECURSIVE and also pthread_mutexattr_settype which are undefined and compilation failed. Those are defined in pthread.h only if __USE_UNIX98 is defined.

What I did is I commented new code and uncommented what was commented. Went just fine.

So, why "#ifdef __linux__" code was commented?

Ivan
Reply With Quote