summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-04-27 00:03:27 +0000
committerChris Bieneman <beanz@apple.com>2017-04-27 00:03:27 +0000
commit7ba4d851b05c4cd07f22ed032c63d12f7362f9b9 (patch)
tree9478c4af5c1618934d76d7cc5a34ffb0153c1750
parent9d2f019fb63e80bfa9d50229b1f6213ccd11368a (diff)
downloadbcm5719-llvm-7ba4d851b05c4cd07f22ed032c63d12f7362f9b9.tar.gz
bcm5719-llvm-7ba4d851b05c4cd07f22ed032c63d12f7362f9b9.zip
Fix Windows bots broken by r301492
http://lab.llvm.org:8011/builders/lldb-x86-windows-msvc2015/builds/8644/ llvm-svn: 301502
-rw-r--r--lldb/source/Host/common/TCPSocket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Host/common/TCPSocket.cpp b/lldb/source/Host/common/TCPSocket.cpp
index 27788e875cd..83d63d08a4a 100644
--- a/lldb/source/Host/common/TCPSocket.cpp
+++ b/lldb/source/Host/common/TCPSocket.cpp
@@ -188,7 +188,9 @@ Error TCPSocket::Listen(llvm::StringRef name, int backlog) {
// 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);
OpenPOWER on IntegriCloud