summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-06-16 16:38:31 +0300
committerSimon Hausmann <simon.hausmann@qt.io>2016-06-16 15:49:13 +0000
commit09957b3f77fccf3dfacdc80afcb52d0668e5c0b2 (patch)
tree60470d50295812a1f255ce2d804669f313097cb5
parent4afc16838f72b94ac1c73da6a8b215bebce30037 (diff)
downloadqtwebkit-09957b3f77fccf3dfacdc80afcb52d0668e5c0b2.tar.gz
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 <simon.hausmann@qt.io>
-rw-r--r--Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp4
1 files 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<MessageDecoder> 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