Index: runtime/bin/platform_win.cc |
diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc |
index d56c9712bfe62105dfecfb5bd071d69f0c22a01d..97d54cc8e7f55a561ba96da900ad2ca0a08476a9 100644 |
--- a/runtime/bin/platform_win.cc |
+++ b/runtime/bin/platform_win.cc |
@@ -32,9 +32,18 @@ const char* Platform::OperatingSystem() { |
} |
+const char* Platform::LibraryExtension() { |
+ return "dll"; |
+} |
+ |
+ |
bool Platform::LocalHostname(char *buffer, intptr_t buffer_length) { |
+#if defined(PLATFORM_DISABLE_SOCKET) |
+ return false; |
+#else |
if (!Socket::Initialize()) return false; |
return gethostname(buffer, buffer_length) == 0; |
+#endif |
} |