From 9bbfd08910ed4ba527f1176e3ebdeafc88becbbb Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Fri, 7 Jul 2017 10:00:11 -0700 Subject: [PATCH] [fuchsia] Use 0 instead of the deprecated MX_PORT_OPT_V2 option Magenta has removed ports v1, and subsequently deprecated the need for the MX_PORT_OPT_V2 option. R=zra@google.com Review-Url: https://codereview.chromium.org/2973893002 . --- runtime/bin/eventhandler_fuchsia.cc | 2 +- runtime/bin/process_fuchsia.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/bin/eventhandler_fuchsia.cc b/runtime/bin/eventhandler_fuchsia.cc index d0b845a7568..41feb5d03ba 100644 --- a/runtime/bin/eventhandler_fuchsia.cc +++ b/runtime/bin/eventhandler_fuchsia.cc @@ -285,7 +285,7 @@ EventHandlerImplementation::EventHandlerImplementation() shutdown_ = false; // Create the port. port_handle_ = MX_HANDLE_INVALID; - mx_status_t status = mx_port_create(MX_PORT_OPT_V2, &port_handle_); + mx_status_t status = mx_port_create(0, &port_handle_); if (status != MX_OK) { // This is a FATAL because the VM won't work at all if we can't create this // port. diff --git a/runtime/bin/process_fuchsia.cc b/runtime/bin/process_fuchsia.cc index 11e918e8d51..b2adc710dbf 100644 --- a/runtime/bin/process_fuchsia.cc +++ b/runtime/bin/process_fuchsia.cc @@ -502,7 +502,7 @@ bool Process::Wait(intptr_t pid, // Create a port, which is like an epoll() fd on Linux. mx_handle_t port; - mx_status_t status = mx_port_create(MX_PORT_OPT_V2, &port); + mx_status_t status = mx_port_create(0, &port); if (status != MX_OK) { Log::PrintErr("Process::Wait: mx_port_create failed: %s\n", mx_status_get_string(status));