[Lldb-commits] [PATCH] Fix mingw build.
Hafiz Abid Qadeer
abidh.haq at gmail.com
Tue Feb 10 08:48:18 PST 2015
- Replaced some check from (win32 && !mingw) to _MSC_VER.
http://reviews.llvm.org/D7536
Files:
source/Host/common/SocketAddress.cpp
source/Host/windows/Makefile
source/Utility/UriParser.cpp
source/lldb.cpp
Index: source/Host/common/SocketAddress.cpp
===================================================================
--- source/Host/common/SocketAddress.cpp
+++ source/Host/common/SocketAddress.cpp
@@ -9,10 +9,13 @@
#include "lldb/Host/SocketAddress.h"
#include <stddef.h>
+#include <stdio.h>
// C Includes
#if !defined(_WIN32)
#include <arpa/inet.h>
+#else
+#include "lldb/Host/windows/win32.h"
#endif
#include <assert.h>
#include <string.h>
@@ -54,7 +57,7 @@
{
char tmp[INET6_ADDRSTRLEN] = {0};
const uint16_t* src16 = static_cast<const uint16_t*>(src);
- int full_size = _snprintf(tmp, sizeof(tmp),
+ int full_size = ::snprintf(tmp, sizeof(tmp),
"%x:%x:%x:%x:%x:%x:%x:%x",
ntohs(src16[0]), ntohs(src16[1]), ntohs(src16[2]), ntohs(src16[3]),
ntohs(src16[4]), ntohs(src16[5]), ntohs(src16[6]), ntohs(src16[7])
Index: source/Host/windows/Makefile
===================================================================
--- source/Host/windows/Makefile
+++ source/Host/windows/Makefile
@@ -11,4 +11,6 @@
LIBRARYNAME := lldbHostWindows
BUILD_ARCHIVE = 1
+SOURCES = $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cpp )) $(PROJ_SRC_DIR)/../posix/ConnectionFileDescriptorPosix.cpp
+
include $(LLDB_LEVEL)/Makefile
Index: source/Utility/UriParser.cpp
===================================================================
--- source/Utility/UriParser.cpp
+++ source/Utility/UriParser.cpp
@@ -11,6 +11,7 @@
// C Includes
#include <stdlib.h>
+#include <stdio.h>
// C++ Includes
// Other libraries and framework includes
Index: source/lldb.cpp
===================================================================
--- source/lldb.cpp
+++ source/lldb.cpp
@@ -209,7 +209,7 @@
//----------------------------------------------------------------------
ProcessLinux::Initialize();
#endif
-#if defined(_WIN32)
+#if defined(_MSC_VER)
DynamicLoaderWindows::Initialize();
ProcessWindows::Initialize();
#endif
@@ -298,7 +298,7 @@
Debugger::SettingsTerminate ();
-#if defined (_WIN32)
+#if defined(_MSC_VER)
DynamicLoaderWindows::Terminate();
#endif
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7536.19686.patch
Type: text/x-patch
Size: 2293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150210/3856d610/attachment.bin>
More information about the lldb-commits
mailing list