[Lldb-commits] [lldb] r199111 - Fixed the Visual Studio Windows build

Deepak Panickal deepak at codeplay.com
Mon Jan 13 06:55:15 PST 2014


Author: panickal
Date: Mon Jan 13 08:55:15 2014
New Revision: 199111

URL: http://llvm.org/viewvc/llvm-project?rev=199111&view=rev
Log:
Fixed the Visual Studio Windows build

Modified:
    lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
    lldb/trunk/source/Host/common/Host.cpp
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Modified: lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConnectionFileDescriptor.cpp?rev=199111&r1=199110&r2=199111&view=diff
==============================================================================
--- lldb/trunk/source/Core/ConnectionFileDescriptor.cpp (original)
+++ lldb/trunk/source/Core/ConnectionFileDescriptor.cpp Mon Jan 13 08:55:15 2014
@@ -1380,7 +1380,7 @@ ConnectionFileDescriptor::SocketListen (
         {
             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 (
             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)

Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=199111&r1=199110&r2=199111&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Mon Jan 13 08:55:15 2014
@@ -13,12 +13,12 @@
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
-#include <unistd.h>
 #ifdef _WIN32
 #include "lldb/Host/windows/windows.h"
 #include <winsock2.h>
 #include <WS2tcpip.h>
 #else
+#include <unistd.h>
 #include <dlfcn.h>
 #include <grp.h>
 #include <netdb.h>

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=199111&r1=199110&r2=199111&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Mon Jan 13 08:55:15 2014
@@ -694,7 +694,11 @@ GDBRemoteCommunication::StartDebugserver
 
                 if (::mktemp (named_pipe_path))
                 {
+#if defined(_MSC_VER)
+                    if ( false )
+#else
                     if (::mkfifo(named_pipe_path, 0600) == 0)
+#endif
                     {
                         debugserver_args.AppendArgument("--named-pipe");
                         debugserver_args.AppendArgument(named_pipe_path);





More information about the lldb-commits mailing list