diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-11 13:30:10 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-11 13:30:10 +0000 |
commit | 4f6e8bade5afe7d71ea6db73089f7634124aeec3 (patch) | |
tree | 29da03613375813fde9beb122e4ffea068d5a94e | |
parent | e3d946f2503d01f6758911d458a9b9ef50e8080c (diff) | |
download | ruby-4f6e8bade5afe7d71ea6db73089f7634124aeec3.tar.gz |
* dir.c, file.c (lstat): avoid warnings for mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dir.c | 4 | ||||
-rw-r--r-- | file.c | 4 |
3 files changed, 8 insertions, 4 deletions
@@ -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/tk/tcltklib.c (ip_finalize): adhoc patch to avoid SEGV when exit @@ -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 @@ -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; |