summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ConnectionFileDescriptor.cpp
diff options
context:
space:
mode:
authorDeepak Panickal <deepak@codeplay.com>2014-01-13 14:55:15 +0000
committerDeepak Panickal <deepak@codeplay.com>2014-01-13 14:55:15 +0000
commitb36da43dc31d0c44fd64f7ec3bc8df9d10e94d10 (patch)
tree2b0df610ba3a0ab064c8c145bdcbfd2ccc1f8109 /lldb/source/Core/ConnectionFileDescriptor.cpp
parent9344787636fab60f51f386784c18d09e669306b2 (diff)
downloadbcm5719-llvm-b36da43dc31d0c44fd64f7ec3bc8df9d10e94d10.tar.gz
bcm5719-llvm-b36da43dc31d0c44fd64f7ec3bc8df9d10e94d10.zip
Fixed the Visual Studio Windows build
llvm-svn: 199111
Diffstat (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp')
-rw-r--r--lldb/source/Core/ConnectionFileDescriptor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp
index 2c49e671b71..ed876e52c9a 100644
--- a/lldb/source/Core/ConnectionFileDescriptor.cpp
+++ b/lldb/source/Core/ConnectionFileDescriptor.cpp
@@ -1380,7 +1380,7 @@ ConnectionFileDescriptor::SocketListen (const char *host_and_port, Error *error_
{
struct sockaddr_in accept_addr;
::memset (&accept_addr, 0, sizeof accept_addr);
-#ifndef __linux__
+#if !(defined (__linux__) || defined(_MSC_VER))
accept_addr.sin_len = sizeof accept_addr;
#endif
socklen_t accept_addr_len = sizeof accept_addr;
@@ -1402,7 +1402,7 @@ ConnectionFileDescriptor::SocketListen (const char *host_and_port, Error *error_
else
{
if (
-#ifndef __linux__
+#if !(defined(__linux__) || (defined(_MSC_VER)))
accept_addr_len == listen_addr.sockaddr_in().sin_len &&
#endif
accept_addr.sin_addr.s_addr == listen_addr.sockaddr_in().sin_addr.s_addr)
OpenPOWER on IntegriCloud