[前][次][番号順一覧][スレッド一覧]

ruby-changes:23625

From: nobu <ko1@a...>
Date: Thu, 17 May 2012 23:04:12 +0900 (JST)
Subject: [ruby-changes:23625] nobu:r35676 (trunk): fix NaCl support

nobu	2012-05-17 23:04:02 +0900 (Thu, 17 May 2012)

  New Revision: 35676

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35676

  Log:
    fix NaCl support
    
    * configure.in: fix function name to be checked, to initialize
      rb_thread_cond_t properly.
    * thread_pthread.c (native_cond_initialize, native_cond_destroy):
      fix macro name.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/thread_pthread.c

Index: configure.in
===================================================================
--- configure.in	(revision 35675)
+++ configure.in	(revision 35676)
@@ -2005,7 +2005,7 @@
 	pthread_getattr_np pthread_attr_get_np pthread_attr_getstack\
 	pthread_get_stackaddr_np pthread_get_stacksize_np \
 	thr_stksegment pthread_stackseg_np pthread_getthrds_np \
-        pthread_cond_initialize pthread_condattr_setclock pthread_condattr_init \
+	pthread_cond_init pthread_condattr_setclock pthread_condattr_init \
         pthread_sigmask)
 fi
 if test x"$ac_cv_header_ucontext_h" = xyes; then
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35675)
+++ ChangeLog	(revision 35676)
@@ -1,3 +1,11 @@
+Thu May 17 23:03:58 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in: fix function name to be checked, to initialize
+	  rb_thread_cond_t properly.
+
+	* thread_pthread.c (native_cond_initialize, native_cond_destroy):
+	  fix macro name.
+
 Thu May 17 12:53:07 2012  Yuki Yugui Sonoda  <yugui@g...>
 
 	* thread.c, thread_pthread.c: Moved pthread-specific preprocessor
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 35675)
+++ thread_pthread.c	(revision 35676)
@@ -245,7 +245,7 @@
 static void
 native_cond_initialize(rb_thread_cond_t *cond, int flags)
 {
-#ifdef HAVE_PTHREAD_COND_INITIALIZE
+#ifdef HAVE_PTHREAD_COND_INIT
     int r;
     pthread_condattr_t attr;
 
@@ -273,7 +273,7 @@
 static void
 native_cond_destroy(rb_thread_cond_t *cond)
 {
-#ifdef HAVE_PTHREAD_COND_INITIALIZE
+#ifdef HAVE_PTHREAD_COND_INIT
     int r = pthread_cond_destroy(&cond->cond);
     if (r != 0) {
 	rb_bug_errno("pthread_cond_destroy", r);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]