Date: Fri, 28 Dec 2018 01:34:08 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342563 - head/lib/msun/src Message-ID: <201812280134.wBS1Y8VD081013@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Fri Dec 28 01:34:08 2018 New Revision: 342563 URL: https://svnweb.freebsd.org/changeset/base/342563 Log: 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@ Modified: head/lib/msun/src/s_cbrt.c head/lib/msun/src/s_cproj.c head/lib/msun/src/s_erf.c Modified: head/lib/msun/src/s_cbrt.c ============================================================================== --- head/lib/msun/src/s_cbrt.c Fri Dec 28 00:26:19 2018 (r342562) +++ head/lib/msun/src/s_cbrt.c Fri Dec 28 01:34:08 2018 (r342563) @@ -15,6 +15,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <float.h> #include "math.h" #include "math_private.h" Modified: head/lib/msun/src/s_cproj.c ============================================================================== --- head/lib/msun/src/s_cproj.c Fri Dec 28 00:26:19 2018 (r342562) +++ head/lib/msun/src/s_cproj.c Fri Dec 28 01:34:08 2018 (r342563) @@ -30,6 +30,7 @@ __FBSDID("$FreeBSD$"); #include <complex.h> +#include <float.h> #include <math.h> #include "math_private.h" Modified: head/lib/msun/src/s_erf.c ============================================================================== --- head/lib/msun/src/s_erf.c Fri Dec 28 00:26:19 2018 (r342562) +++ head/lib/msun/src/s_erf.c Fri Dec 28 01:34:08 2018 (r342563) @@ -107,7 +107,7 @@ __FBSDID("$FreeBSD$"); * erfc/erf(NaN) is NaN */ - +#include <float.h> #include "math.h" #include "math_private.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812280134.wBS1Y8VD081013>