Use rb_errinfo() instead of ruby_errinfo for Ruby 1.9
This commit is contained in:
parent
afabe7b0ef
commit
d972975d87
|
@ -673,6 +673,7 @@ if test x$dumm = xtrue; then
|
||||||
[AC_MSG_RESULT([$LIBS]); RUBYLIB=$LIBS],
|
[AC_MSG_RESULT([$LIBS]); RUBYLIB=$LIBS],
|
||||||
[AC_MSG_ERROR([not found])])
|
[AC_MSG_ERROR([not found])])
|
||||||
AC_SUBST(RUBYLIB)
|
AC_SUBST(RUBYLIB)
|
||||||
|
AC_CHECK_FUNCS(rb_errinfo)
|
||||||
LIBS=$saved_LIBS
|
LIBS=$saved_LIBS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
#undef PACKAGE_URL
|
#undef PACKAGE_URL
|
||||||
#include <ruby.h>
|
#include <ruby.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_RB_ERRINFO
|
||||||
|
#define ruby_errinfo rb_errinfo()
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* main routine, parses args and reads from console
|
* main routine, parses args and reads from console
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue