Index: runtime/bin/process.h |
diff --git a/runtime/bin/process.h b/runtime/bin/process.h |
index f877b8d51bd55dc37722648b56e1ce7ed22d9e4e..fafff6b8f59af589e859c0013d0f05ad1504c783 100644 |
--- a/runtime/bin/process.h |
+++ b/runtime/bin/process.h |
@@ -12,7 +12,7 @@ |
#include "bin/lockers.h" |
#include "bin/thread.h" |
#include "platform/globals.h" |
-#if !defined(TARGET_OS_WINDOWS) |
+#if !defined(HOST_OS_WINDOWS) |
#include "platform/signal_blocker.h" |
#endif |
#include "platform/utils.h" |
@@ -322,8 +322,8 @@ class BufferListBase { |
DISALLOW_COPY_AND_ASSIGN(BufferListBase); |
}; |
-#if defined(TARGET_OS_ANDROID) || defined(TARGET_OS_FUCHSIA) || \ |
- defined(TARGET_OS_LINUX) || defined(TARGET_OS_MACOS) |
+#if defined(HOST_OS_ANDROID) || defined(HOST_OS_FUCHSIA) || \ |
+ defined(HOST_OS_LINUX) || defined(HOST_OS_MACOS) |
class BufferList : public BufferListBase { |
public: |
BufferList() {} |
@@ -340,13 +340,13 @@ class BufferList : public BufferListBase { |
ASSERT(free_size() > 0); |
ASSERT(free_size() <= kBufferSize); |
intptr_t block_size = dart::Utils::Minimum(free_size(), available); |
-#if defined(TARGET_OS_FUCHSIA) |
+#if defined(HOST_OS_FUCHSIA) |
intptr_t bytes = NO_RETRY_EXPECTED( |
read(fd, reinterpret_cast<void*>(FreeSpaceAddress()), block_size)); |
#else |
intptr_t bytes = TEMP_FAILURE_RETRY( |
read(fd, reinterpret_cast<void*>(FreeSpaceAddress()), block_size)); |
-#endif // defined(TARGET_OS_FUCHSIA) |
+#endif // defined(HOST_OS_FUCHSIA) |
if (bytes < 0) { |
return false; |
} |
@@ -360,7 +360,7 @@ class BufferList : public BufferListBase { |
private: |
DISALLOW_COPY_AND_ASSIGN(BufferList); |
}; |
-#endif // defined(TARGET_OS_ANDROID) ... |
+#endif // defined(HOST_OS_ANDROID) ... |
} // namespace bin |
} // namespace dart |