From 4d215cd9d3e0c4ea8ba802aa87773d6578c45a15 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 7 Mar 2000 08:37:59 +0000 Subject: 2000-03-07 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index a5409a304d..9c64dd35e9 100644 --- a/dir.c +++ b/dir.c @@ -48,9 +48,6 @@ #endif #include -#ifdef USE_CWGUSI -# include -#endif #ifndef HAVE_STDLIB_H char *getenv(); @@ -430,7 +427,7 @@ static VALUE dir_s_chroot(dir, path) VALUE dir, path; { -#if !defined(DJGPP) && !defined(NT) && !defined(__human68k__) && !defined(USE_CWGUSI) && !defined(__BEOS__) && !defined(__EMX__) && !defined(riscos) +#if !defined(DJGPP) && !defined(NT) && !defined(__human68k__) && !defined(__BEOS__) && !defined(__EMX__) && !defined(riscos) rb_secure(2); Check_SafeStr(path); @@ -462,7 +459,7 @@ dir_s_mkdir(argc, argv, obj) Check_SafeStr(path); rb_secure(2); -#if !defined(NT) && !defined(USE_CWGUSI) +#if !defined(NT) if (mkdir(RSTRING(path)->ptr, mode) == -1) rb_sys_fail(RSTRING(path)->ptr); #else @@ -482,7 +479,7 @@ dir_s_rmdir(obj, dir) if (rmdir(RSTRING(dir)->ptr) < 0) rb_sys_fail(RSTRING(dir)->ptr); - return Qtrue; + return INT2FIX(0); } /* Return nonzero if S has any special globbing chars in it. */ -- cgit v1.2.3