void-packages/srcpkgs/firefox-esr/patches/fix-i386-fdlibm.patch
oreo639 4f1daf96be
firefox-esr: update to 102.3.0.
Co-authored-by: Duncaen <duncaen@voidlinux.org>
2022-10-05 19:21:17 +02:00

18 lines
551 B
Diff

# error: typedef redefinition with different types ('__double_t' (aka 'double') vs 'long double')
# https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
--- a/modules/fdlibm/src/math_private.h
+++ b/modules/fdlibm/src/math_private.h
@@ -30,7 +30,12 @@
* Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
*/
+#if defined(__linux__) && defined(__i386__) && !defined(__clang__)
+// rely on glibc's double_t
+typedef long double __double_t;
+#else
typedef double __double_t;
+#endif
typedef __double_t double_t;
/*