$NetBSD: patch-af,v 1.2 1999/11/30 13:24:47 rh Exp $ --- Layer1/System/Unix/mutex_pthread.cpp.orig Sun Aug 15 00:53:30 1999 +++ Layer1/System/Unix/mutex_pthread.cpp Mon Nov 29 18:30:10 1999 @@ -31,7 +31,11 @@ { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); +#ifdef PTHREAD_MUTEX_RECURSIVE_NP pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); +#else + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); +#endif pthread_mutex_init(&mutex, &attr); pthread_mutexattr_destroy(&attr); }