diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextMach_arm.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextMach_arm.cpp index a36634f759f7..7ceb536272f4 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 62b50956678c..3d6c9a6baca6 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 @@ -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 9746ec95428e..f03685e1313f 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 @@ -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