aboutsummaryrefslogtreecommitdiffstats
path: root/community/webkit2gtk/musl-wordsize.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/webkit2gtk/musl-wordsize.patch')
-rw-r--r--community/webkit2gtk/musl-wordsize.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/community/webkit2gtk/musl-wordsize.patch b/community/webkit2gtk/musl-wordsize.patch
deleted file mode 100644
index d83e70bdf07..00000000000
--- a/community/webkit2gtk/musl-wordsize.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-Upstream: yes
-
-From 1b7144916774dbb4cc4705ba9a4377844e35f47d Mon Sep 17 00:00:00 2001
-From: q66 <daniel@octaforge.org>
-Date: Tue, 27 Apr 2021 22:56:33 +0200
-Subject: [PATCH] remove __WORDSIZE usage
-
----
- Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp | 6 +++---
- Source/WebCore/rendering/RenderLayerBacking.h | 2 +-
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp
-index cfe3698..e5bc870 100644
---- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp
-+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp
-@@ -39,7 +39,7 @@ namespace CryptoAlgorithmAES_GCMInternal {
- static const char* const ALG128 = "A128GCM";
- static const char* const ALG192 = "A192GCM";
- static const char* const ALG256 = "A256GCM";
--#if __WORDSIZE >= 64
-+#if CPU(ADDRESS64)
- static const uint64_t PlainTextMaxLength = 549755813632ULL; // 2^39 - 256
- #endif
- static const uint8_t DefaultTagLength = 128;
-@@ -77,7 +77,7 @@ void CryptoAlgorithmAES_GCM::encrypt(const CryptoAlgorithmParameters& parameters
-
- auto& aesParameters = downcast<CryptoAlgorithmAesGcmParams>(parameters);
-
--#if __WORDSIZE >= 64
-+#if CPU(ADDRESS64)
- if (plainText.size() > PlainTextMaxLength) {
- exceptionCallback(OperationError);
- return;
-@@ -120,7 +120,7 @@ void CryptoAlgorithmAES_GCM::decrypt(const CryptoAlgorithmParameters& parameters
- return;
- }
-
--#if __WORDSIZE >= 64
-+#if CPU(ADDRESS64)
- if (aesParameters.ivVector().size() > UINT64_MAX) {
- exceptionCallback(OperationError);
- return;
-diff --git Source/WebCore/rendering/RenderLayerBacking.h Source/WebCore/rendering/RenderLayerBacking.h
-index 9960724..193c5d1 100644
---- a/Source/WebCore/rendering/RenderLayerBacking.h
-+++ b/Source/WebCore/rendering/RenderLayerBacking.h
-@@ -43,7 +43,7 @@ class TiledBacking;
- class TransformationMatrix;
-
-
--#if __WORDSIZE == 64 && PLATFORM(COCOA)
-+#if CPU(ADDRESS64) && PLATFORM(COCOA)
- #define USE_OWNING_LAYER_BEAR_TRAP 1
- #define BEAR_TRAP_VALUE 0xEEEEEEEEEEEEEEEE
- #else
---
-2.30.1
-