From 3cb6dd6e940029fdb98716e87520660c49f781bf Mon Sep 17 00:00:00 2001 From: Dawn Perchik Date: Fri, 31 Jul 2015 00:26:46 +0000 Subject: [PATCH] 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 --- lldb/tools/debugserver/source/RNBRemote.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index 76970f8..dc22e52 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -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()); -- 2.7.4