| Index: runtime/bin/socket_openbsd.cc
|
| diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_openbsd.cc
|
| similarity index 99%
|
| copy from runtime/bin/socket_macos.cc
|
| copy to runtime/bin/socket_openbsd.cc
|
| index 205793bc11689161d110091970eb11f8c7faff9f..a19bd1fca59cb0db2389bcfc6d158b724cdf2b92 100644
|
| --- a/runtime/bin/socket_macos.cc
|
| +++ b/runtime/bin/socket_openbsd.cc
|
| @@ -3,8 +3,9 @@
|
| // 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 <sys/socket.h> // NOLINT
|
| #include <errno.h> // NOLINT
|
| #include <stdio.h> // NOLINT
|
| #include <stdlib.h> // NOLINT
|
| @@ -18,6 +19,7 @@
|
| #include "bin/fdutils.h"
|
| #include "bin/file.h"
|
| #include "bin/socket.h"
|
| +#include "bin/socket_openbsd.h"
|
|
|
| #include "platform/signal_blocker.h"
|
|
|
| @@ -52,7 +54,7 @@ bool Socket::FormatNumericAddress(const RawAddr& addr, char* address, int len) {
|
|
|
|
|
| bool Socket::Initialize() {
|
| - // Nothing to do on Mac OS.
|
| + // Nothing to do on OpenBSD.
|
| return true;
|
| }
|
|
|
| @@ -617,4 +619,4 @@ bool Socket::LeaveMulticast(intptr_t fd,
|
| } // namespace bin
|
| } // namespace dart
|
|
|
| -#endif // defined(TARGET_OS_MACOS)
|
| +#endif // defined(TARGET_OS_OPENBSD)
|
|
|