From af4885a4a83ed28c3194131e80bd3b40bc03a2cc Mon Sep 17 00:00:00 2001
From: Elliott Hughes <enh@google.com>
Date: Tue, 3 Feb 2015 13:02:57 -0800
Subject: [PATCH] Fix Mac build.

I knew I should have created a new library that doesn't build for the
Mac or Windows rather than adding to libutils...

Change-Id: I7c07eaa93affb7e83d4da384f03652c39065562a
---
 libutils/file.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libutils/file.cpp b/libutils/file.cpp
index 15bda7f5f..aa35ff242 100644
--- a/libutils/file.cpp
+++ b/libutils/file.cpp
@@ -21,6 +21,8 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
+#include <utils/Compat.h> // For TEMP_FAILURE_RETRY on Darwin.
+
 bool android::ReadFileToString(const std::string& path, std::string* content) {
   content->clear();