summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-11 13:30:10 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-11 13:30:10 +0000
commit5744658590426ac716fff6b45dd006071915176f (patch)
tree29da03613375813fde9beb122e4ffea068d5a94e /file.c
parent3b0dd0f16fa8ad6496b90430bd98cfde3f8808a0 (diff)
downloadruby-5744658590426ac716fff6b45dd006071915176f.tar.gz
ruby-5744658590426ac716fff6b45dd006071915176f.tar.xz
ruby-5744658590426ac716fff6b45dd006071915176f.zip
* dir.c, file.c (lstat): avoid warnings for mingw.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 798615669..94136e7b7 100644
--- a/file.c
+++ b/file.c
@@ -64,8 +64,8 @@ char *strrchr _((const char*,const char));
#include <sys/mkdev.h>
#endif
-#ifndef HAVE_LSTAT
-#define lstat(path,st) stat(path,st)
+#if !defined HAVE_LSTAT && !defined lstat
+#define lstat stat
#endif
VALUE rb_cFile;