diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-08-03 18:55:26 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-03 18:55:26 +0000 |
commit | f044a1e7887f44cba406b54aa32b7b8b92cc0cb8 (patch) | |
tree | 33c588f18ca8f71a4d7fb072c616a8c1596c8621 | |
parent | c5a136103b1c3e28d4c332e4a9b7068d70ab92c7 (diff) | |
download | bcm5719-llvm-f044a1e7887f44cba406b54aa32b7b8b92cc0cb8.tar.gz bcm5719-llvm-f044a1e7887f44cba406b54aa32b7b8b92cc0cb8.zip |
Patch from David Forsythe for FreeBSD build!
llvm-svn: 136800
3 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextMach_arm.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextMach_arm.cpp index a36634f759f..7ceb536272f 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextMach_arm.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextMach_arm.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +#if defined(__APPLE__) + #include "RegisterContextMach_arm.h" // C Includes @@ -82,4 +84,4 @@ RegisterContextMach_arm::DoWriteDBG (lldb::tid_t tid, int flavor, const DBG &dbg return ::thread_set_state(tid, flavor, (thread_state_t)&dbg, DBGWordCount); } - +#endif diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextMach_i386.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextMach_i386.cpp index 62b50956678..3d6c9a6baca 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextMach_i386.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextMach_i386.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#if defined(__APPLE__) // C Includes #include <mach/thread_act.h> @@ -68,4 +69,4 @@ RegisterContextMach_i386::DoWriteEXC (lldb::tid_t tid, int flavor, const EXC &ex return ::thread_set_state(tid, flavor, (thread_state_t)&exc, EXCWordCount); } - +#endif diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextMach_x86_64.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextMach_x86_64.cpp index 9746ec95428..f03685e1313 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextMach_x86_64.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextMach_x86_64.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#if defined(__APPLE__) // C Includes #include <mach/thread_act.h> @@ -68,3 +69,4 @@ RegisterContextMach_x86_64::DoWriteEXC (lldb::tid_t tid, int flavor, const EXC & return ::thread_set_state(tid, flavor, (thread_state_t)&exc, EXCWordCount); } +#endif |