mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
Fix build of lldb on Mavericks after svn rev.243511.
This patch adds a test for ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED around the code which requires 10.10 support to link. Without this, lldb gets unresolved references to _csr_check and _rootless_allows_task_for_pid. Reviewed by: jasonmolenda Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11668 llvm-svn: 243715
This commit is contained in:
parent
f3ed62f626
commit
3cb6dd6e94
@ -141,7 +141,7 @@ decode_uint64 (const char *p, int base, char **end = nullptr, uint64_t fail_valu
|
||||
|
||||
extern void ASLLogCallback(void *baton, uint32_t flags, const char *format, va_list args);
|
||||
|
||||
#if defined (__APPLE__)
|
||||
#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
|
||||
// from System.framework/Versions/B/PrivateHeaders/sys/codesign.h
|
||||
extern "C" {
|
||||
#define CS_OPS_STATUS 0 /* return status */
|
||||
@ -3692,7 +3692,7 @@ RNBRemote::HandlePacket_v (const char *p)
|
||||
else
|
||||
m_ctx.LaunchStatus().SetErrorString("attach failed");
|
||||
|
||||
#if defined (__APPLE__)
|
||||
#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
|
||||
if (pid_attaching_to == INVALID_NUB_PROCESS && !attach_name.empty())
|
||||
{
|
||||
pid_attaching_to = DNBProcessGetPIDByName (attach_name.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user