diff options
Diffstat (limited to 'net-libs/webkit-gtk/files/webkit-gtk-2.6.0-atomic-ppc.patch')
-rw-r--r-- | net-libs/webkit-gtk/files/webkit-gtk-2.6.0-atomic-ppc.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.6.0-atomic-ppc.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.6.0-atomic-ppc.patch new file mode 100644 index 000000000000..af6d467e232a --- /dev/null +++ b/net-libs/webkit-gtk/files/webkit-gtk-2.6.0-atomic-ppc.patch @@ -0,0 +1,48 @@ +From 7960c437511c650ad33708f4e42457118d95a13d Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Sun, 19 Oct 2014 19:43:09 +0200 +Subject: [PATCH 4/4] Do not use std::atomic on PPC + +$OpenBSD: patch-Source_WebKit2_Platform_IPC_Connection_h,v 1.2 2014/07/14 21:13:31 ajacoutot Exp $ + +https://bugs.webkit.org/show_bug.cgi?id=130837 +--- + Source/WebKit2/Platform/IPC/Connection.h | 4 ++++ + Source/WebKit2/UIProcess/StatisticsRequest.cpp | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/Source/WebKit2/Platform/IPC/Connection.h b/Source/WebKit2/Platform/IPC/Connection.h +index b52cf1e..5597e94 100644 +--- a/Source/WebKit2/Platform/IPC/Connection.h ++++ b/Source/WebKit2/Platform/IPC/Connection.h +@@ -233,7 +233,11 @@ private: + + Client* m_client; + bool m_isServer; ++#if CPU(PPC) ++ uint64_t m_syncRequestID; ++#else + std::atomic<uint64_t> m_syncRequestID; ++#endif + + bool m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage; + bool m_shouldExitOnSyncMessageSendFailure; +diff --git a/Source/WebKit2/UIProcess/StatisticsRequest.cpp b/Source/WebKit2/UIProcess/StatisticsRequest.cpp +index bc0a1e6..ef259d1 100644 +--- a/Source/WebKit2/UIProcess/StatisticsRequest.cpp ++++ b/Source/WebKit2/UIProcess/StatisticsRequest.cpp +@@ -44,7 +44,11 @@ StatisticsRequest::~StatisticsRequest() + + uint64_t StatisticsRequest::addOutstandingRequest() + { ++#if CPU(PPC) ++ static int64_t uniqueRequestID; ++#else + static std::atomic<int64_t> uniqueRequestID; ++#endif + + uint64_t requestID = ++uniqueRequestID; + m_outstandingRequests.add(requestID); +-- +2.1.2 + |