Skip to content

Commit 293ec1e

Browse files
committed
[RegisterContextDarwin_arm64] Include the headers for getsysctlbyname.
This code is only used under __arm64__, use the correct guard. <rdar://problem/55916729> llvm-svn: 373509
1 parent ef46be6 commit 293ec1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525

2626
#include <memory>
2727

28+
#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__))
29+
#include <sys/types.h>
30+
#include <sys/sysctl.h>
31+
#endif
32+
2833
// Support building against older versions of LLVM, this macro was added
2934
// recently.
3035
#ifndef LLVM_EXTENSION

0 commit comments

Comments
 (0)