Merge "Fix Windows build."
This commit is contained in:
commit
6c3ff4fe7f
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ static bool CleanUpAfterFailedWrite(const std::string& path) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
bool android::WriteStringToFile(const std::string& content, const std::string& path,
|
bool android::WriteStringToFile(const std::string& content, const std::string& path,
|
||||||
mode_t mode, uid_t owner, gid_t group) {
|
mode_t mode, uid_t owner, gid_t group) {
|
||||||
int fd = TEMP_FAILURE_RETRY(open(path.c_str(),
|
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);
|
return CleanUpAfterFailedWrite(path);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool android::WriteStringToFile(const std::string& content, const std::string& path) {
|
bool android::WriteStringToFile(const std::string& content, const std::string& path) {
|
||||||
int fd = TEMP_FAILURE_RETRY(open(path.c_str(),
|
int fd = TEMP_FAILURE_RETRY(open(path.c_str(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue