Skip to content

Commit

Permalink
[lldb] Only include mach headers on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Jan 25, 2022
1 parent 87e68ca commit c2cd7cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Expand Up @@ -9,10 +9,6 @@
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringRef.h"

#include <mach/mach_init.h>
#include <mach/vm_map.h>
#include <lldb/Host/SafeMachO.h>

#include "Plugins/Process/Utility/RegisterContextDarwin_arm.h"
#include "Plugins/Process/Utility/RegisterContextDarwin_arm64.h"
#include "Plugins/Process/Utility/RegisterContextDarwin_i386.h"
Expand Down Expand Up @@ -60,6 +56,9 @@
#include <TargetConditionals.h>
// GetLLDBSharedCacheUUID() needs to call dlsym()
#include <dlfcn.h>
#include <mach/mach_init.h>
#include <mach/vm_map.h>
#include <lldb/Host/SafeMachO.h>
#endif

#ifndef __APPLE__
Expand Down

0 comments on commit c2cd7cc

Please sign in to comment.