From 2498dca71d0f694dc7fcab6a73a3d04b2c475ea8 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 2 Mar 2016 20:02:34 +0100 Subject: webkitgtk: update and add some patches --- .../patch-Source_JavaScriptCore_runtime_Options_cpp | 11 +++++++++++ ..._WebCore_platform_linux_MemoryPressureHandlerLinux_cpp | 15 +++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 package/webkitgtk/patches/patch-Source_JavaScriptCore_runtime_Options_cpp create mode 100644 package/webkitgtk/patches/patch-Source_WebCore_platform_linux_MemoryPressureHandlerLinux_cpp (limited to 'package/webkitgtk/patches') diff --git a/package/webkitgtk/patches/patch-Source_JavaScriptCore_runtime_Options_cpp b/package/webkitgtk/patches/patch-Source_JavaScriptCore_runtime_Options_cpp new file mode 100644 index 000000000..2d1a35c7e --- /dev/null +++ b/package/webkitgtk/patches/patch-Source_JavaScriptCore_runtime_Options_cpp @@ -0,0 +1,11 @@ +--- webkitgtk-2.10.7.orig/Source/JavaScriptCore/runtime/Options.cpp 2016-01-29 17:29:32.000000000 +0100 ++++ webkitgtk-2.10.7/Source/JavaScriptCore/runtime/Options.cpp 2016-03-02 07:46:04.000000000 +0100 +@@ -610,7 +610,7 @@ bool Option::operator==(const Option& ot + case Options::Type::unsignedType: + return m_entry.unsignedVal == other.m_entry.unsignedVal; + case Options::Type::doubleType: +- return (m_entry.doubleVal == other.m_entry.doubleVal) || (isnan(m_entry.doubleVal) && isnan(other.m_entry.doubleVal)); ++ return (m_entry.doubleVal == other.m_entry.doubleVal) || (std::isnan(m_entry.doubleVal) && std::isnan(other.m_entry.doubleVal)); + case Options::Type::int32Type: + return m_entry.int32Val == other.m_entry.int32Val; + case Options::Type::optionRangeType: diff --git a/package/webkitgtk/patches/patch-Source_WebCore_platform_linux_MemoryPressureHandlerLinux_cpp b/package/webkitgtk/patches/patch-Source_WebCore_platform_linux_MemoryPressureHandlerLinux_cpp new file mode 100644 index 000000000..f5566ff08 --- /dev/null +++ b/package/webkitgtk/patches/patch-Source_WebCore_platform_linux_MemoryPressureHandlerLinux_cpp @@ -0,0 +1,15 @@ +--- webkitgtk-2.10.7.orig/Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp 2016-01-29 17:29:33.000000000 +0100 ++++ webkitgtk-2.10.7/Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp 2016-03-02 19:21:10.000000000 +0100 +@@ -201,8 +201,12 @@ void MemoryPressureHandler::respondToMem + + void MemoryPressureHandler::platformReleaseMemory(Critical) + { ++#ifndef __UCLIBC__ + ReliefLogger log("Run malloc_trim"); + malloc_trim(0); ++#else ++ ReliefLogger log("malloc_trim not available"); ++#endif + } + + void MemoryPressureHandler::ReliefLogger::platformLog() -- cgit v1.2.3