git: 3bfc837685b8 - main - sinpi,cospi,tanpi: float.h needed for week reference
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Oct 2021 00:15:46 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3bfc837685b8128067b946b31dfe2120dae0d003 commit 3bfc837685b8128067b946b31dfe2120dae0d003 Author: Steve Kargl <kargl@FreeBSD.org> AuthorDate: 2021-10-28 22:53:13 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-10-29 00:15:19 +0000 sinpi,cospi,tanpi: float.h needed for week reference The patch fixes the omission of '#include <float.h>', which is needed for the weak reference on systems with LDBL_MANT_DIG == DBL_MANT_DIG. PR: 218514 MFC after: 1 week --- lib/msun/src/s_cospi.c | 1 + lib/msun/src/s_sinpi.c | 1 + lib/msun/src/s_tanpi.c | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/msun/src/s_cospi.c b/lib/msun/src/s_cospi.c index 92a5f467c97f..860219efd3e4 100644 --- a/lib/msun/src/s_cospi.c +++ b/lib/msun/src/s_cospi.c @@ -60,6 +60,7 @@ * cospi(nan) = nan. Raises the "invalid" floating-point exception. */ +#include <float.h> #include "math.h" #include "math_private.h" diff --git a/lib/msun/src/s_sinpi.c b/lib/msun/src/s_sinpi.c index b9731112a7eb..858459a5fcb4 100644 --- a/lib/msun/src/s_sinpi.c +++ b/lib/msun/src/s_sinpi.c @@ -63,6 +63,7 @@ * sinpi(nan) = nan. Raises the "invalid" floating-point exception. */ +#include <float.h> #include "math.h" #include "math_private.h" diff --git a/lib/msun/src/s_tanpi.c b/lib/msun/src/s_tanpi.c index e01917c94c15..01d4c74367fd 100644 --- a/lib/msun/src/s_tanpi.c +++ b/lib/msun/src/s_tanpi.c @@ -63,6 +63,7 @@ * tanpi(nan) = NaN. Raises the "invalid" floating-point exception. */ +#include <float.h> #include "math.h" #include "math_private.h"