From: "Tom Matelich"
I found a define in dce/cma.h (appended to my original email) which seems
to
fit the bill:
/* * Define a symbol which client code can test to determine whether the * underlying threads package is DECthreads or not. This is especially * important to clients of the Pthreads interface who may want to use * certain DECthreads extensions, such as the global lock and non-real-time * scheduling policies, on the DECthreads platform while maintaining * portability to a "vanilla" pthreads implementation. */ #define _DECTHREADS_ 1
OK, I'll change pthread_mutex_init(&m_, 0); to #if defined(__hpux) && defined(_DECTHREADS_) pthread_mutex_init(&m_, pthread_mutexattr_default); #else pthread_mutex_init(&m_, 0); #endif Let me know if this solves the problem.