git: 444288f101a2 - 2025Q2 - www/webkit2-gtk: properly expose roundeven{,f} on 32-bit platforms
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 May 2025 12:38:56 UTC
The branch 2025Q2 has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=444288f101a2c2e666f57713f187ec6250248aa0 commit 444288f101a2c2e666f57713f187ec6250248aa0 Author: Charlie Li <vishwin@FreeBSD.org> AuthorDate: 2025-05-03 17:29:44 +0000 Commit: Charlie Li <vishwin@FreeBSD.org> CommitDate: 2025-05-04 12:38:48 +0000 www/webkit2-gtk: properly expose roundeven{,f} on 32-bit platforms The preprocessor guard only accounts for Linux without glibc, but we don't have these C23 functions yet either. Reported and tested by: fuz, makc, dinoex Differential Revision: https://reviews.freebsd.org/D50138 (cherry picked from commit c467c7498ddfffae7e0da59dbbfc716afb697258) --- .../files/patch-Source_JavaScriptCore_runtime_MathCommon.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/www/webkit2-gtk/files/patch-Source_JavaScriptCore_runtime_MathCommon.cpp b/www/webkit2-gtk/files/patch-Source_JavaScriptCore_runtime_MathCommon.cpp new file mode 100644 index 000000000000..331be93267d8 --- /dev/null +++ b/www/webkit2-gtk/files/patch-Source_JavaScriptCore_runtime_MathCommon.cpp @@ -0,0 +1,11 @@ +--- Source/JavaScriptCore/runtime/MathCommon.cpp.orig 2024-10-21 09:00:02 UTC ++++ Source/JavaScriptCore/runtime/MathCommon.cpp +@@ -635,7 +635,7 @@ JSC_DEFINE_NOEXCEPT_JIT_OPERATION(f64_nearest, double, + return std::nearbyint(operand); + } + +-#if OS(LINUX) && !defined(__GLIBC__) ++#if OS(UNIX) && !defined(__GLIBC__) + static inline float roundevenf(float operand) + { + float rounded = roundf(operand);