Merge from vendor branch TNF:
[pkgsrc.git] / graphics / clanlib / patches / patch-af
1 $NetBSD$
2
3 --- Layer1/System/Unix/mutex_pthread.cpp.orig   Sun Aug 15 00:53:30 1999
4 +++ Layer1/System/Unix/mutex_pthread.cpp        Mon Nov 29 18:30:10 1999
5 @@ -31,7 +31,11 @@
6  {
7         pthread_mutexattr_t attr;
8         pthread_mutexattr_init(&attr);
9 +#ifdef PTHREAD_MUTEX_RECURSIVE_NP
10         pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
11 +#else
12 +       pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
13 +#endif
14         pthread_mutex_init(&mutex, &attr);
15         pthread_mutexattr_destroy(&attr);
16  }