diff options
author | emaste <emaste@FreeBSD.org> | 2015-02-08 16:18:46 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-02-08 16:18:46 +0000 |
commit | d0b639aedf54d9c22d4bad7c263d01fa08e262cf (patch) | |
tree | 6385c93b8bafd996d097d5f6607d6ba0ab40be4e /contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | |
parent | d1978ee4b1830653a1ea330ae2bf6ef22f58ed0e (diff) | |
download | FreeBSD-src-d0b639aedf54d9c22d4bad7c263d01fa08e262cf.zip FreeBSD-src-d0b639aedf54d9c22d4bad7c263d01fa08e262cf.tar.gz |
Use FreeBSD ProcessMonitor.h on FreeBSD
There's an unfortunate layering issue between LLDB's Process/POSIX and
Process/{FreeBSD,Linux}, exposed by a refactoring in upstream revision
218568. Work around it by adding explicit #if defined(__FreeBSD__)
guards to include the correct header.
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index 0e5ab5a..94c318c 100644 --- a/contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -29,7 +29,11 @@ #include "ProcessPOSIX.h" #include "ProcessPOSIXLog.h" #include "Plugins/Process/Utility/InferiorCallPOSIX.h" +#if defined(__FreeBSD__) +#include "Plugins/Process/FreeBSD/ProcessMonitor.h" +#else #include "Plugins/Process/Linux/ProcessMonitor.h" +#endif #include "POSIXThread.h" using namespace lldb; |