492117 allow pthread_condattr_init on Mac OS X patch from jHuddleston r=wan-teh
authorglen.beasley%sun.com
Sat, 09 May 2009 00:16:52 +0000
changeset 4108 9c6f553cfedd3bd67aa3ec7b64e8c53f317a7f04
parent 4107 b00cc9d11c4669514eafa60dcc6b15375641294a
child 4109 25923a3aeae262f8ef823eaec4d966ab5fdd4725
push idunknown
push userunknown
push dateunknown
reviewerswan-teh
bugs492117
492117 allow pthread_condattr_init on Mac OS X patch from jHuddleston r=wan-teh
pr/include/md/_pth.h
--- a/pr/include/md/_pth.h
+++ b/pr/include/md/_pth.h
@@ -93,21 +93,17 @@
 #define _PT_PTHREAD_MUTEXATTR_INIT        pthread_mutexattr_init
 #define _PT_PTHREAD_MUTEXATTR_DESTROY     pthread_mutexattr_destroy
 #define _PT_PTHREAD_MUTEX_INIT(m, a)      pthread_mutex_init(&(m), &(a))
 #if defined(FREEBSD)
 #define _PT_PTHREAD_MUTEX_IS_LOCKED(m)    pt_pthread_mutex_is_locked(&(m))
 #else
 #define _PT_PTHREAD_MUTEX_IS_LOCKED(m)    (EBUSY == pthread_mutex_trylock(&(m)))
 #endif
-#if defined(DARWIN)
-#define _PT_PTHREAD_CONDATTR_INIT(x)      0
-#else
 #define _PT_PTHREAD_CONDATTR_INIT         pthread_condattr_init
-#endif
 #define _PT_PTHREAD_CONDATTR_DESTROY      pthread_condattr_destroy
 #define _PT_PTHREAD_COND_INIT(m, a)       pthread_cond_init(&(m), &(a))
 #endif
 
 /* The pthreads standard does not specify an invalid value for the
  * pthread_t handle.  (0 is usually an invalid pthread identifier
  * but there are exceptions, for example, DG/UX.)  These macros
  * define a way to set the handle to or compare the handle with an