From 09957b3f77fccf3dfacdc80afcb52d0668e5c0b2 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 16 Jun 2016 16:38:31 +0300 Subject: Added missing PLATFORM(MAC) checks. Original patch http://trac.webkit.org/changeset/151646 assumed that ConnectionMac.cpp is specific to PLATFORM(MAC), but we use it as well. Change-Id: Ifb09e1576105c40df28040971129ee32dc041194 Reviewed-by: Simon Hausmann --- Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp b/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp index cdadc9c45..f780fbc7e 100644 --- a/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp +++ b/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp @@ -141,7 +141,7 @@ bool Connection::open() // Create the receive port. mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &m_receivePort); -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 +#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 mach_port_set_attributes(mach_task_self(), m_receivePort, MACH_PORT_IMPORTANCE_RECEIVER, (mach_port_info_t)0, 0); #endif @@ -423,7 +423,7 @@ void Connection::receiveSourceEventHandler() OwnPtr decoder = createMessageDecoder(header); ASSERT(decoder); -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 +#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 decoder->setImportanceAssertion(ImportanceAssertion::create(header)); #endif -- cgit v1.2.1