Fix windows build.
Turns out Windows does not have ssize_t.
Change-Id: Ib54bc9d9a942b2f0a88958837a61309a235467ed
diff --git a/include/perfetto/base/file_utils.h b/include/perfetto/base/file_utils.h
index b2cfbe2..3126b7c 100644
--- a/include/perfetto/base/file_utils.h
+++ b/include/perfetto/base/file_utils.h
@@ -19,12 +19,16 @@
#include <string>
+#include "perfetto/base/build_config.h"
+
namespace perfetto {
namespace base {
bool ReadFileDescriptor(int fd, std::string* out);
bool ReadFile(const std::string& path, std::string* out);
+#if !PERFETTO_BUILDFLAG(PERFETTO_OS_WIN)
+
// Call write until all data is written or an error is detected.
//
// man 2 write:
@@ -34,6 +38,8 @@
// succeeds, and returns the number of bytes written.
ssize_t WriteAll(int fd, const void* buf, size_t count);
+#endif
+
} // namespace base
} // namespace perfetto