Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 984e01e5 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 6c3ff4fe: Merge "Fix Windows build."

* commit '6c3ff4fe':
  Fix Windows build.
parents 05d8a22c 6c3ff4fe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ static bool CleanUpAfterFailedWrite(const std::string& path) {
  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 @@ bool android::WriteStringToFile(const std::string& content, const std::string& p
  }
  return CleanUpAfterFailedWrite(path);
}
#endif

bool android::WriteStringToFile(const std::string& content, const std::string& path) {
  int fd = TEMP_FAILURE_RETRY(open(path.c_str(),