From 36d72ffdccc60981e2ff78d3e6bee48c80deb2f8 Mon Sep 17 00:00:00 2001 From: "iposva@google.com" Date: Wed, 20 Feb 2013 23:47:29 +0000 Subject: [PATCH] Fix Windows build: - Missed a OS dependent file. Review URL: https://codereview.chromium.org//12315020 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18798 260f80e4-7a28-3924-810f-c04153c831b5 --- runtime/bin/fdutils_android.cc | 13 +++++++++---- runtime/bin/fdutils_linux.cc | 13 +++++++++---- runtime/bin/fdutils_macos.cc | 13 +++++++++---- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/runtime/bin/fdutils_android.cc b/runtime/bin/fdutils_android.cc index 8d946e68677..18b4ec39a52 100644 --- a/runtime/bin/fdutils_android.cc +++ b/runtime/bin/fdutils_android.cc @@ -2,10 +2,13 @@ // 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 -#include -#include -#include +#include "platform/globals.h" +#if defined(TARGET_OS_ANDROID) + +#include // NOLINT +#include // NOLINT +#include // NOLINT +#include // NOLINT #include "bin/fdutils.h" @@ -132,3 +135,5 @@ ssize_t FDUtils::WriteToBlocking(int fd, const void* buffer, size_t count) { } return count; } + +#endif // defined(TARGET_OS_ANDROID) diff --git a/runtime/bin/fdutils_linux.cc b/runtime/bin/fdutils_linux.cc index 8d946e68677..84c21941b07 100644 --- a/runtime/bin/fdutils_linux.cc +++ b/runtime/bin/fdutils_linux.cc @@ -2,10 +2,13 @@ // 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 -#include -#include -#include +#include "platform/globals.h" +#if defined(TARGET_OS_LINUX) + +#include // NOLINT +#include // NOLINT +#include // NOLINT +#include // NOLINT #include "bin/fdutils.h" @@ -132,3 +135,5 @@ ssize_t FDUtils::WriteToBlocking(int fd, const void* buffer, size_t count) { } return count; } + +#endif // defined(TARGET_OS_LINUX) diff --git a/runtime/bin/fdutils_macos.cc b/runtime/bin/fdutils_macos.cc index 92e63fcefd5..7087add7b2e 100644 --- a/runtime/bin/fdutils_macos.cc +++ b/runtime/bin/fdutils_macos.cc @@ -2,10 +2,13 @@ // 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 -#include -#include -#include +#include "platform/globals.h" +#if defined(TARGET_OS_MACOS) + +#include // NOLINT +#include // NOLINT +#include // NOLINT +#include // NOLINT #include "bin/fdutils.h" @@ -133,3 +136,5 @@ ssize_t FDUtils::WriteToBlocking(int fd, const void* buffer, size_t count) { } return count; } + +#endif // defined(TARGET_OS_MACOS)