[Lldb-commits] [lldb] r293020 - Conditionalized OsLogger.cpp on a modern SDK.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 24 21:18:32 PST 2017


Author: spyffe
Date: Tue Jan 24 23:18:32 2017
New Revision: 293020

URL: http://llvm.org/viewvc/llvm-project?rev=293020&view=rev
Log:
Conditionalized OsLogger.cpp on a modern SDK.

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/OsLogger.cpp

Modified: lldb/trunk/tools/debugserver/source/MacOSX/OsLogger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/OsLogger.cpp?rev=293020&r1=293019&r2=293020&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/OsLogger.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/OsLogger.cpp Tue Jan 24 23:18:32 2017
@@ -8,8 +8,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "OsLogger.h"
+#include <Availability.h>
 
-#if LLDB_USE_OS_LOG
+#if (LLDB_USE_OS_LOG) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101200)
 
 #include <os/log.h>
 
@@ -64,3 +65,4 @@ DNBCallbackLog OsLogger::GetLogFunction(
 DNBCallbackLog OsLogger::GetLogFunction() { return nullptr; }
 
 #endif
+




More information about the lldb-commits mailing list