Index: runtime/bin/fdutils_macos.cc |
=================================================================== |
--- runtime/bin/fdutils_macos.cc (revision 18787) |
+++ runtime/bin/fdutils_macos.cc (working copy) |
@@ -2,11 +2,14 @@ |
// 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 <errno.h> |
-#include <fcntl.h> |
-#include <unistd.h> |
-#include <sys/ioctl.h> |
+#include "platform/globals.h" |
+#if defined(TARGET_OS_MACOS) |
+#include <errno.h> // NOLINT |
+#include <fcntl.h> // NOLINT |
+#include <unistd.h> // NOLINT |
+#include <sys/ioctl.h> // NOLINT |
+ |
#include "bin/fdutils.h" |
@@ -133,3 +136,5 @@ |
} |
return count; |
} |
+ |
+#endif // defined(TARGET_OS_MACOS) |