summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 7122ec9a20..33aa60619c 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -113,6 +113,8 @@ extern "C++" {
#define write(h, b, l) _write(h, b, l)
#define _open _sopen
#define sopen _sopen
+#undef fstat
+#define fstat(fd,st) rb_w32_fstat(fd,st)
#endif
#define fsync(h) _commit(h)
#undef stat