diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-27 01:05:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-27 01:05:06 +0000 |
commit | 854c5ec4704736124b6fd0dcebe2f05557dfc1b8 (patch) | |
tree | bc51f1785957d388381c6dfcf9df1bd6a24a3350 | |
parent | bc9428b73239a472f7a888f78822af221f295475 (diff) | |
download | ruby-854c5ec4704736124b6fd0dcebe2f05557dfc1b8.tar.gz |
win32.h: fstat on mingw32
* include/ruby/win32.h (fstat): use _fstati64() instead of fstati64()
on mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/win32.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Oct 27 10:05:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * include/ruby/win32.h (fstat): use _fstati64() instead of fstati64() + on mingw32. + Sat Oct 27 06:28:33 2012 Aaron Patterson <aaron@tenderlovemaking.com> * object.c (rb_mod_const_get): const_get accepts qualified constant diff --git a/include/ruby/win32.h b/include/ruby/win32.h index a2eec0cf19..9645cc888d 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -177,7 +177,7 @@ typedef unsigned int uintptr_t; #if SIZEOF_OFF_T == 8 #define off_t __int64 #define stat stati64 -#define fstat(fd,st) fstati64(fd,st) +#define fstat(fd,st) _fstati64(fd,st) #if defined(__BORLANDC__) #define stati64(path, st) rb_w32_stati64(path, st) #elif !defined(_MSC_VER) || RT_VER < 80 |