Index: base/platform_file_win.cc |
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc |
index 7c72f9e92e1451d5873e854e9e818c298533078b..796711c2e5440ac2bca9a7a8edfe7108d67d840f 100644 |
--- a/base/platform_file_win.cc |
+++ b/base/platform_file_win.cc |
@@ -4,6 +4,8 @@ |
#include "base/platform_file.h" |
+#include <io.h> |
+ |
#include "base/file_path.h" |
#include "base/logging.h" |
#include "base/threading/thread_restrictions.h" |
@@ -109,6 +111,10 @@ PlatformFile CreatePlatformFileUnsafe(const FilePath& name, |
return file; |
} |
+FILE* FdopenPlatformFile(PlatformFile file, const char* mode) { |
+ return _fdopen(_open_osfhandle(file, 0), mode); |
+} |
+ |
bool ClosePlatformFile(PlatformFile file) { |
base::ThreadRestrictions::AssertIOAllowed(); |
return (CloseHandle(file) != 0); |