Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: runtime/bin/socket_openbsd.cc

Issue 1559053002: Refs #10260 OpenBSD support #25327 Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review issues Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_openbsd.h ('k') | runtime/bin/stdio_openbsd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « runtime/bin/socket_openbsd.h ('k') | runtime/bin/stdio_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698