[Lldb-commits] [lldb] r301502 - Fix Windows bots broken by r301492
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 26 17:03:27 PDT 2017
Author: cbieneman
Date: Wed Apr 26 19:03:27 2017
New Revision: 301502
URL: http://llvm.org/viewvc/llvm-project?rev=301502&view=rev
Log:
Fix Windows bots broken by r301492
http://lab.llvm.org:8011/builders/lldb-x86-windows-msvc2015/builds/8644/
Modified:
lldb/trunk/source/Host/common/TCPSocket.cpp
Modified: lldb/trunk/source/Host/common/TCPSocket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/TCPSocket.cpp?rev=301502&r1=301501&r2=301502&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/TCPSocket.cpp (original)
+++ lldb/trunk/source/Host/common/TCPSocket.cpp Wed Apr 26 19:03:27 2017
@@ -188,7 +188,9 @@ Error TCPSocket::Listen(llvm::StringRef
// enable local address reuse
int option_value = 1;
- ::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &option_value,
+ set_socket_option_arg_type option_value_p =
+ reinterpret_cast<get_socket_option_arg_type>(&option_value);
+ ::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, option_value_p,
sizeof(option_value));
address.SetPort(port);
More information about the lldb-commits
mailing list