From 417d1bdc6055c3ef9ea45cd2702d7b8ff81b7fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 30 Sep 2015 12:52:35 +0200 Subject: [PATCH] webkit2gtk: fix musl isnan() issue --- srcpkgs/webkit2gtk/patches/musl-isnan.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 srcpkgs/webkit2gtk/patches/musl-isnan.patch diff --git a/srcpkgs/webkit2gtk/patches/musl-isnan.patch b/srcpkgs/webkit2gtk/patches/musl-isnan.patch new file mode 100644 index 0000000000..7b64bdf153 --- /dev/null +++ b/srcpkgs/webkit2gtk/patches/musl-isnan.patch @@ -0,0 +1,12 @@ +--- Source/JavaScriptCore/runtime/Options.cpp 2015-09-21 09:29:46.000000000 +0200 ++++ Source/JavaScriptCore/runtime/Options.cpp 2015-09-30 12:32:25.447786694 +0200 +@@ -610,7 +610,8 @@ + 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: