Permalink
Browse files

@bearded's ruby 1.9.3 patch from #33 /cc #39

  • Loading branch information...
1 parent 22b31cc commit 1742f97b94ce6d7be4365c097d8b8ad62444b846 @tmm1 committed Mar 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 ext/perftools.c
View
@@ -123,6 +123,11 @@ static VALUE Isend;
#include <vm_core.h>
#include <iseq.h>
+// Fix compile error in ruby 1.9.3
+#ifdef RTYPEDDATA_DATA
+#define ruby_current_thread ((rb_thread_t *)RTYPEDDATA_DATA(rb_thread_current()))
+#endif
+
int
rb_stack_trace(void** result, int max_depth)
{

0 comments on commit 1742f97

Please sign in to comment.