Commit 293ec1e1 authored by Davide Italiano's avatar Davide Italiano
Browse files

[RegisterContextDarwin_arm64] Include the headers for getsysctlbyname.

This code is only used under __arm64__, use the correct guard.

<rdar://problem/55916729>

llvm-svn: 373509
parent ef46be6c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,6 +25,11 @@

#include <memory>

#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__))
#include <sys/types.h>
#include <sys/sysctl.h>
#endif

// Support building against older versions of LLVM, this macro was added
// recently.
#ifndef LLVM_EXTENSION