--- libompc/src/ompc_thread.c.orig	2012-04-15 17:29:40.000000000 +0900
+++ libompc/src/ompc_thread.c	2012-04-15 17:30:52.000000000 +0900
@@ -262,11 +262,11 @@
      */
     ompc_max_threads = ompc_num_threads;
 
-#ifdef USE_PTHREAD
+#ifdef USE_PTHREAD_BARRIER
     pthread_barrier_init(&ompc_thd_bar, 0, ompc_num_threads);
 #endif
 
-#if defined(OMNI_OS_IRIX) && defined(USE_PTHREAD)
+#if (defined(OMNI_OS_IRIX) || defined(OMNI_OS_DARWIN)) && defined(USE_PTHREAD)
     pthread_setconcurrency(ompc_max_threads);
 #endif /* OMNI_OS_IRIX && USE_PTHREAD */
 
