libm: Include float.h to get LDBL_MANT_DIG

The long double aliases of double functions are only exposed as aliases if
LDBL_MANT_DIG is 53 (same as DBL_MANT_DIG).  Without float.h included these
files were not exposing weak aliases as expected, leading to link failures
if programs use the *l functions.  This should fix editors/calligra on
targets with 64-bit long double, which uses erfl and erfcl.  Found on
powerpc64.

Reviewed by:	kargl@
This commit is contained in:
Justin Hibbits 2018-12-28 01:34:08 +00:00
parent 2728d6307d
commit 003fdafbea
3 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <float.h>
#include "math.h"
#include "math_private.h"

View File

@ -30,6 +30,7 @@
__FBSDID("$FreeBSD$");
#include <complex.h>
#include <float.h>
#include <math.h>
#include "math_private.h"

View File

@ -107,7 +107,7 @@ __FBSDID("$FreeBSD$");
* erfc/erf(NaN) is NaN
*/
#include <float.h>
#include "math.h"
#include "math_private.h"