--- ./mutex/mut_pthread.c.orig Tue May 2 15:15:07 2000 +++ ./mutex/mut_pthread.c Mon Nov 20 19:42:51 2000 @@ -88,16 +88,22 @@ if (!F_ISSET(mutexp, MUTEX_THREAD)) { ret = pthread_condattr_init(&condattr); +/* XXX linux threads implementation has not attributes for conditions. */ +#if !defined(__linux__) if (ret == 0) ret = pthread_condattr_setpshared( &condattr, PTHREAD_PROCESS_SHARED); +#endif condattrp = &condattr; if (ret == 0) ret = pthread_mutexattr_init(&mutexattr); +/* XXX linux threads implementation has not attributes for mutexes. */ +#if !defined(__linux__) if (ret == 0) ret = pthread_mutexattr_setpshared( &mutexattr, PTHREAD_PROCESS_SHARED); +#endif mutexattrp = &mutexattr; }