]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 2516ea99467bf50e6336854c60dcc790c3663e93..97a7ad3795661ebe9768833e0178205dab266504 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 7543e6bd624a2b0235d596d86a9906d95d516ea3..d30973737eadc11347608cfb5eeb92ffb6378d88 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
  */