Skip to content

Instantly share code, notes, and snippets.

@jruby
Created August 21, 2010 09:08
Show Gist options
  • Save jruby/542034 to your computer and use it in GitHub Desktop.
Save jruby/542034 to your computer and use it in GitHub Desktop.
diff --git a/cext/src/include/ruby/ruby.h b/cext/src/include/ruby/ruby.h
index 7e97f11..b17a9db 100644
--- a/cext/src/include/ruby/ruby.h
+++ b/cext/src/include/ruby/ruby.h
@@ -1001,6 +1001,8 @@ RUBY_DLLSPEC extern VALUE rb_eLoadError;
#define ALLOCA_N(type,n) (type*)alloca(sizeof(type)*(n))
+#define RUBY_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))func)
+
#ifdef __cplusplus
}
#endif
diff --git a/lib/ruby/1.8/mkmf.rb b/lib/ruby/1.8/mkmf.rb
index 151c2a5..58355ec 100644
--- a/lib/ruby/1.8/mkmf.rb
+++ b/lib/ruby/1.8/mkmf.rb
@@ -88,6 +88,8 @@ unless defined? $configure_args
end
end
+Config::CONFIG['archdir'] = $topdir
+
$libdir = CONFIG["libdir"]
$rubylibdir = CONFIG["rubylibdir"]
$archdir = CONFIG["archdir"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment