aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in1
-rw-r--r--src/dumm/irdumm.c4
2 files changed, 5 insertions, 0 deletions
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 <ruby.h>
+#ifdef HAVE_RB_ERRINFO
+#define ruby_errinfo rb_errinfo()
+#endif
+
/**
* main routine, parses args and reads from console
*/