summaryrefslogtreecommitdiff
path: root/www/firefox91/patches/patch-modules_fdlibm_src_math__private.h
blob: fba1609c5c1c3f9d9aeb9da0df732ed10add4bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-modules_fdlibm_src_math__private.h,v 1.1.2.2 2021/11/05 19:28:53 bsiegert Exp $

* Fix PR pkg/56457, build failure on NetBSD/i386.
  Do not use FreeBSD-specific definition.

--- modules/fdlibm/src/math_private.h.orig	2021-09-27 22:47:42.000000000 +0000
+++ modules/fdlibm/src/math_private.h
@@ -30,8 +30,8 @@
  * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
  */
 
-typedef double      __double_t;
-typedef __double_t  double_t;
+#include <math.h>
+typedef double_t __double_t;
 
 /*
  * The original fdlibm code used statements like: