Try to fix the FreeBSD build.
llvm-svn: 217462
diff --git a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
index ce2d44e..7df7698 100644
--- a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
+++ b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
@@ -11,6 +11,7 @@
#include "lldb/Host/freebsd/HostThreadFreeBSD.h"
// C includes
+#include <errno.h>
#include <pthread.h>
#include <pthread_np.h>
#include <stdlib.h>
@@ -33,7 +34,7 @@
void
HostThreadFreeBSD::SetName(lldb::thread_t thread, llvm::StringRef name)
{
- ::pthread_set_name_np(thread, name);
+ ::pthread_set_name_np(thread, name.data());
}
void
diff --git a/lldb/source/Host/freebsd/ThisThread.cpp b/lldb/source/Host/freebsd/ThisThread.cpp
index 6a50618..1c68c8b 100644
--- a/lldb/source/Host/freebsd/ThisThread.cpp
+++ b/lldb/source/Host/freebsd/ThisThread.cpp
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-#include "lldb/Host/linux/HostThreadLinux.h"
+#include "lldb/Host/HostNativeThread.h"
#include "lldb/Host/ThisThread.h"
#include "llvm/ADT/SmallVector.h"
@@ -19,11 +19,11 @@
void
ThisThread::SetName(llvm::StringRef name)
{
- HostThread::SetName(::pthread_self(), name);
+ HostNativeThread::SetName(::pthread_self(), name);
}
void
ThisThread::GetName(llvm::SmallVectorImpl<char> &name)
{
- HostThread::GetName(::pthread_self(), name);
+ HostNativeThread::GetName(::pthread_self(), name);
}