From 14594d81891b0bdf9aa03f72b88d6939eee59f02 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 11 Sep 2012 13:58:23 -0500 Subject: Fix FTBFS on ruby 1.8.x --- qtruby/bin/qtrubyinit.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'qtruby/bin') diff --git a/qtruby/bin/qtrubyinit.cpp b/qtruby/bin/qtrubyinit.cpp index 65c00c40..c9569d9f 100644 --- a/qtruby/bin/qtrubyinit.cpp +++ b/qtruby/bin/qtrubyinit.cpp @@ -25,13 +25,18 @@ qrubyinit - makes use of tdeinit_wrapper possible for ruby programs * * ***************************************************************************/ -// this name can be used to allow apps +// this name can be used to allow apps // to detect what they were started with static const char* script_name = "qrubyinit_app"; int main(int argc, char **argv) { ruby_init(); ruby_script((char*)script_name); - void* node = ruby_options(argc, argv); +#ifdef HAVE_RUBY_1_9 + void* node = ruby_options(argc, argv); ruby_run_node(node); +#else // HAVE_RUBY_1_9 + ruby_options(argc, argv); + ruby_run(); +#endif // HAVE_RUBY_1_9 } -- cgit v1.2.1