Merge "Fix Windows build."
diff --git a/libutils/file.cpp b/libutils/file.cpp
index bfd1f55..5b1ce88 100644
--- a/libutils/file.cpp
+++ b/libutils/file.cpp
@@ -70,6 +70,7 @@
   return false;
 }
 
+#if !defined(_WIN32)
 bool android::WriteStringToFile(const std::string& content, const std::string& path,
                                 mode_t mode, uid_t owner, gid_t group) {
   int fd = TEMP_FAILURE_RETRY(open(path.c_str(),
@@ -85,6 +86,7 @@
   }
   return CleanUpAfterFailedWrite(path);
 }
+#endif
 
 bool android::WriteStringToFile(const std::string& content, const std::string& path) {
   int fd = TEMP_FAILURE_RETRY(open(path.c_str(),