summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-02-18 10:01:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-02-18 10:01:47 +0000
commit9c1657f302d0d0e5b8eefa2a70f73bdb57d5fcd6 (patch)
treeebac1b974c7c9a60b995c57b95e25e4a0ab3ca21 /ruby.c
parenta9662810df18371af7492dd8298cc0cccc13c7c7 (diff)
cygwin patches
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@83 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 43250e7c16..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();