aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-09-09 22:11:10 +0000
committerZachary Turner <zturner@google.com>2014-09-09 22:11:10 +0000
commit9daf1a6c00587f73b5db0bc8e8492cb1fe84341f (patch)
treed0922ee6d99543c169d75e3dd070e713824871a8
parent21933ccdd759c852dc56e1c8a945d3e3744bc53e (diff)
downloadllvm-9daf1a6c00587f73b5db0bc8e8492cb1fe84341f.zip
llvm-9daf1a6c00587f73b5db0bc8e8492cb1fe84341f.tar.gz
llvm-9daf1a6c00587f73b5db0bc8e8492cb1fe84341f.tar.bz2
Try to fix the FreeBSD build.
llvm-svn: 217462
-rw-r--r--lldb/source/Host/freebsd/HostThreadFreeBSD.cpp3
-rw-r--r--lldb/source/Host/freebsd/ThisThread.cpp6
2 files changed, 5 insertions, 4 deletions
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 @@ HostThreadFreeBSD::HostThreadFreeBSD(lldb::thread_t thread)
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 @@ using namespace lldb_private;
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);
}