Index: runtime/bin/eventhandler_openbsd.cc |
diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_openbsd.cc |
similarity index 98% |
copy from runtime/bin/eventhandler_macos.cc |
copy to runtime/bin/eventhandler_openbsd.cc |
index faf471b2a0f02e1ac4a1f6664a97fd1ad71f591d..87a53060945389252500a57f09261f709e3eb82c 100644 |
--- a/runtime/bin/eventhandler_macos.cc |
+++ b/runtime/bin/eventhandler_openbsd.cc |
@@ -3,10 +3,10 @@ |
// BSD-style license that can be found in the LICENSE file. |
#include "platform/globals.h" |
-#if defined(TARGET_OS_MACOS) |
+#if defined(TARGET_OS_OPENBSD) |
#include "bin/eventhandler.h" |
-#include "bin/eventhandler_macos.h" |
+#include "bin/eventhandler_openbsd.h" |
#include <errno.h> // NOLINT |
#include <pthread.h> // NOLINT |
@@ -433,7 +433,7 @@ void EventHandlerImplementation::EventHandlerEntry(uword args) { |
ts.tv_nsec = (millis32 - (secs * 1000)) * 1000000; |
timeout = &ts; |
} |
- // We have to use TEMP_FAILURE_RETRY for mac, as kevent can modify the |
+ // We have to use TEMP_FAILURE_RETRY for openbsd, as kevent can modify the |
// current sigmask. |
intptr_t result = TEMP_FAILURE_RETRY( |
kevent(handler_impl->kqueue_fd_, NULL, 0, events, kMaxEvents, timeout)); |
@@ -487,4 +487,4 @@ uint32_t EventHandlerImplementation::GetHashmapHashFromFd(intptr_t fd) { |
} // namespace bin |
} // namespace dart |
-#endif // defined(TARGET_OS_MACOS) |
+#endif // defined(TARGET_OS_OPENBSD) |