summaryrefslogtreecommitdiff
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
commit9d7f33e08b59b74b9c19f2d8cfc1ff5077e91697 (patch)
treee4dfa284337a1ab48ebe3a31b6f67d40136bc0b5 /file.c
parent4d41fb221581725e454596ac10891496b065ddf0 (diff)
* dir.c, file.c (lstat): avoid warnings for mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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 bf2fbb3..fce522d 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
#if !HAVE_FSEEKO && !defined(fseeko)
# define fseeko fseek