summaryrefslogtreecommitdiffstats
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
commit8af7287d2512613884d6573ca194d2b27576b371 (patch)
treee4dfa284337a1ab48ebe3a31b6f67d40136bc0b5
parent6f0fdbc1c6d9035aebc01d203eae44316d3f87f2 (diff)
downloadruby-8af7287d2512613884d6573ca194d2b27576b371.tar.gz
ruby-8af7287d2512613884d6573ca194d2b27576b371.tar.xz
ruby-8af7287d2512613884d6573ca194d2b27576b371.zip
* dir.c, file.c (lstat): avoid warnings for mingw.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--dir.c4
-rw-r--r--file.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 83d40e701..cb54629a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr 11 22:18:23 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * dir.c, file.c (lstat): avoid warnings for mingw.
+
Mon Apr 11 20:11:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tcltklib/tcltklib.c (ip_finalize): adhoc patch to avoid SEGV
diff --git a/dir.c b/dir.c
index 30ec1822e..da7b90ce5 100644
--- a/dir.c
+++ b/dir.c
@@ -63,8 +63,8 @@ char *strchr _((char*,char));
#include "util.h"
-#ifndef HAVE_LSTAT
-#define lstat(path,st) stat(path,st)
+#if !defined HAVE_LSTAT && !defined lstat
+#define lstat stat
#endif
#define FNM_NOESCAPE 0x01
diff --git a/file.c b/file.c
index bf2fbb395..fce522de5 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