summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2015-02-10 17:16:13 +0000
committerSylvestre Ledru <sylvestre@debian.org>2015-02-10 17:16:13 +0000
commit57958b5d359aab5daab2d579daaa098b908a3ed6 (patch)
tree45020465b8ccf395738e22f056c16f01e5ddad27 /lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
parente73e82f2beb4d25c9007a0878ca131959ec1f1b2 (diff)
downloadbcm5719-llvm-57958b5d359aab5daab2d579daaa098b908a3ed6.tar.gz
bcm5719-llvm-57958b5d359aab5daab2d579daaa098b908a3ed6.zip
Fix the LLDB build under Debian Kfreebsd
Summary: I don't know if there is a better way for the change in source/Host/freebsd/ThisThread.cpp Reviewers: emaste Subscribers: hansw, emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D7441 llvm-svn: 228710
Diffstat (limited to 'lldb/source/Host/freebsd/HostThreadFreeBSD.cpp')
-rw-r--r--lldb/source/Host/freebsd/HostThreadFreeBSD.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
index 7d611bb6894..a4302a9e67b 100644
--- a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
+++ b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp
@@ -14,7 +14,9 @@
// C includes
#include <errno.h>
#include <pthread.h>
+#if defined (__FreeBSD__)
#include <pthread_np.h>
+#endif
#include <stdlib.h>
#include <sys/sysctl.h>
#include <sys/user.h>
OpenPOWER on IntegriCloud