Fix FTBFS on ruby 1.8.x

(cherry picked from commit 14594d8189)
v3.5.13-sru
Timothy Pearson 12 years ago committed by Slávek Banko
parent 7ad4be65ec
commit 591ffa4e6b

@ -25,13 +25,18 @@
* *
***************************************************************************/
// 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 = "krubyinit_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
}

@ -25,13 +25,18 @@ qrubyinit - makes use of kdeinit_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
}

Loading…
Cancel
Save