summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 6e748f249d..7c948206a7 100644
--- a/ruby.c
+++ b/ruby.c
@@ -83,6 +83,13 @@ addpath(path)
char *path;
{
if (path == 0) return;
+#if defined(__CYGWIN32__)
+ {
+ char rubylib[FILENAME_MAX];
+ conv_to_posix_path(path, rubylib);
+ path = rubylib;
+ }
+#endif
if (strchr(path, RUBY_LIB_SEP)) {
char *p, *s;
VALUE ary = ary_new();
@@ -124,7 +131,7 @@ add_modules(mod)
}
void
-rb_require_modules()
+ruby_require_modules()
{
struct req_list *list = req_list;
struct req_list *tmp;
@@ -361,6 +368,7 @@ proc_options(argcp, argvp)
show_copyright();
}
+ Init_ext(); /* should be called here for some reason :-( */
if (script_given == FALSE) {
if (argc == 0) { /* no more args */
if (verbose == 3) exit(0);