Index: runtime/bin/file_macos.cc |
=================================================================== |
--- runtime/bin/file_macos.cc (revision 18775) |
+++ runtime/bin/file_macos.cc (working copy) |
@@ -2,14 +2,17 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+#include "platform/globals.h" |
+#if defined(TARGET_OS_MACOS) |
+ |
#include "bin/file.h" |
-#include <errno.h> |
-#include <fcntl.h> |
-#include <sys/stat.h> |
-#include <unistd.h> |
-#include <libgen.h> |
-#include <limits.h> |
+#include <errno.h> // NOLINT |
+#include <fcntl.h> // NOLINT |
+#include <sys/stat.h> // NOLINT |
+#include <unistd.h> // NOLINT |
+#include <libgen.h> // NOLINT |
+#include <limits.h> // NOLINT |
#include "bin/builtin.h" |
#include "bin/fdutils.h" |
@@ -250,3 +253,5 @@ |
if (S_ISREG(buf.st_mode)) return kFile; |
return kOther; |
} |
+ |
+#endif // defined(TARGET_OS_MACOS) |