Use rb_errinfo() instead of ruby_errinfo for Ruby 1.9
authorTobias Brunner <tobias@strongswan.org>
Thu, 8 Nov 2012 18:24:04 +0000 (19:24 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 10 Dec 2012 08:47:46 +0000 (09:47 +0100)
configure.in
src/dumm/irdumm.c

index 2516ea9..97a7ad3 100644 (file)
@@ -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
 
index 7543e6b..d309737 100644 (file)
 #undef PACKAGE_URL
 #include <ruby.h>
 
+#ifdef HAVE_RB_ERRINFO
+#define ruby_errinfo rb_errinfo()
+#endif
+
 /**
  * main routine, parses args and reads from console
  */