[RegisterContextDarwin_arm64] Include the headers for getsysctlbyname.

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

<rdar://problem/55916729>

llvm-svn: 373509
This commit is contained in:
Davide Italiano 2019-10-02 19:20:21 +00:00
parent ef46be6c2a
commit 293ec1e16a
1 changed files with 5 additions and 0 deletions

View File

@ -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