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

ruby-changes:28182

From: naruse <ko1@a...>
Date: Thu, 11 Apr 2013 16:11:29 +0900 (JST)
Subject: [ruby-changes:28182] naruse:r40234 (trunk): * ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 on

naruse	2013-04-11 16:10:39 +0900 (Thu, 11 Apr 2013)

  New Revision: 40234

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

  Log:
    * ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 on
      Mac OS X and Linux [Bug #3371]

  Modified files:
    trunk/ChangeLog
    trunk/ext/fiddle/closure.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40233)
+++ ChangeLog	(revision 40234)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Apr 11 16:10:01 2013  NARUSE, Yui  <naruse@r...>
+
+	* ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 on
+	  Mac OS X and Linux [Bug #3371]
+
 Thu Apr 11 13:19:22 2013  NAKAMURA Usaku  <usa@r...>
 
 	* test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill
Index: ext/fiddle/closure.c
===================================================================
--- ext/fiddle/closure.c	(revision 40233)
+++ ext/fiddle/closure.c	(revision 40234)
@@ -11,7 +11,7 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/ext/fiddle/closure.c#L11
 } fiddle_closure;
 
 #if defined(USE_FFI_CLOSURE_ALLOC)
-#elif defined(__OpenBSD__)
+#elif defined(__OpenBSD__) || defined(__APPLE__) || defined(__linux__)
 # define USE_FFI_CLOSURE_ALLOC 0
 #elif defined(RUBY_LIBFFI_MODVERSION) && RUBY_LIBFFI_MODVERSION < 3000005 && \
 	(defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_AMD64))

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

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