void-packages/srcpkgs/firefox/patches/fix-i386-fdlibm.patch

20 lines
522 B
Diff

--- a/modules/fdlibm/src/math_private.h
+++ b/modules/fdlibm/src/math_private.h
@@ -30,9 +30,15 @@
* 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;
+typedef long double __float_t;
+#else
typedef double __double_t;
-typedef __double_t double_t;
typedef float __float_t;
+#endif
+typedef __double_t double_t;
typedef __float_t float_t;
/*