summaryrefslogtreecommitdiffstats
path: root/libutils/file.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-04 19:38:28 -0800
committerElliott Hughes <enh@google.com>2015-02-04 19:38:28 -0800
commit31fa09c1c611633c8c9bdc2f1466d8de47ca95e6 (patch)
tree78058dc687bbc1088c1e5a64015f5ad088e7f7eb /libutils/file.cpp
parent051f369a14a405dc6dbaf708dc51a21c5629bf88 (diff)
downloadsystem_core-31fa09c1c611633c8c9bdc2f1466d8de47ca95e6.zip
system_core-31fa09c1c611633c8c9bdc2f1466d8de47ca95e6.tar.gz
system_core-31fa09c1c611633c8c9bdc2f1466d8de47ca95e6.tar.bz2
Fix Windows build.
Only two days in, and I'm already really regretting putting this code somewhere that builds for Mac OS and Windows... Change-Id: I576ee4a9e647e10dc2d47c7e1e38aedee2bf404c
Diffstat (limited to 'libutils/file.cpp')
-rw-r--r--libutils/file.cpp2
1 files changed, 2 insertions, 0 deletions
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 @@ 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(),