Fix FTBFS on ruby 1.8.x

pull/1/head
Timothy Pearson 12 years ago
parent ef7a60860d
commit 14594d8189

@ -32,6 +32,11 @@ static const char* script_name = "krubyinit_app";
int main(int argc, char **argv) {
ruby_init();
ruby_script((char*)script_name);
#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
}

@ -32,6 +32,11 @@ static const char* script_name = "qrubyinit_app";
int main(int argc, char **argv) {
ruby_init();
ruby_script((char*)script_name);
#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