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

Side by Side Diff: runtime/bin/socket_win.cc

Issue 15010004: Fix windows build break. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_WINDOWS) 6 #if defined(TARGET_OS_WINDOWS)
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/eventhandler.h" 9 #include "bin/eventhandler.h"
10 #include "bin/file.h" 10 #include "bin/file.h"
11 #include "bin/log.h" 11 #include "bin/log.h"
12 #include "bin/socket.h" 12 #include "bin/socket.h"
13 #include "bin/utils.h"
13 14
14 15
15 namespace dart { 16 namespace dart {
16 namespace bin { 17 namespace bin {
17 18
18 SocketAddress::SocketAddress(struct addrinfo* addrinfo) { 19 SocketAddress::SocketAddress(struct addrinfo* addrinfo) {
19 ASSERT(INET6_ADDRSTRLEN >= INET_ADDRSTRLEN); 20 ASSERT(INET6_ADDRSTRLEN >= INET_ADDRSTRLEN);
20 RawAddr* raw = reinterpret_cast<RawAddr*>(addrinfo->ai_addr); 21 RawAddr* raw = reinterpret_cast<RawAddr*>(addrinfo->ai_addr);
21 22
22 // Clear the port before calling WSAAddressToString as WSAAddressToString 23 // Clear the port before calling WSAAddressToString as WSAAddressToString
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 IPPROTO_TCP, 328 IPPROTO_TCP,
328 TCP_NODELAY, 329 TCP_NODELAY,
329 reinterpret_cast<char *>(&on), 330 reinterpret_cast<char *>(&on),
330 sizeof(on)) == 0; 331 sizeof(on)) == 0;
331 } 332 }
332 333
333 } // namespace bin 334 } // namespace bin
334 } // namespace dart 335 } // namespace dart
335 336
336 #endif // defined(TARGET_OS_WINDOWS) 337 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698