diff --git a/configure.in b/configure.in index 2516ea994..97a7ad379 100644 --- a/configure.in +++ b/configure.in @@ -673,6 +673,7 @@ if test x$dumm = xtrue; then [AC_MSG_RESULT([$LIBS]); RUBYLIB=$LIBS], [AC_MSG_ERROR([not found])]) AC_SUBST(RUBYLIB) + AC_CHECK_FUNCS(rb_errinfo) LIBS=$saved_LIBS fi diff --git a/src/dumm/irdumm.c b/src/dumm/irdumm.c index 7543e6bd6..d30973737 100644 --- a/src/dumm/irdumm.c +++ b/src/dumm/irdumm.c @@ -21,6 +21,10 @@ #undef PACKAGE_URL #include +#ifdef HAVE_RB_ERRINFO +#define ruby_errinfo rb_errinfo() +#endif + /** * main routine, parses args and reads from console */