From d3da750d019d458355af602936d01901ba14f11c Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sun, 11 Mar 2018 14:09:30 -0400 Subject: nldbl-compat.c: Include math.h before nldbl-compat.h. Jeff Law noticed that native PowerPC builds were broken by my having made math_ldbl_opt.h not include math.h. nldbl-compat.c formerly got math.h via libioP.h and math_ldbl_opt.h, *without* __NO_LONG_DOUBLE_MATH; after my change it got it via nldbl-compat.h *with* __NO_LONG_DOUBLE_MATH, but __NO_LONG_DOUBLE_MATH mode is forbidden on hosts that define __HAVE_DISTINCT_FLOAT128, so the build breaks. This is the quick fix. * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h before nldbl-compat.h. --- sysdeps/ieee754/ldbl-opt/nldbl-compat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/ieee754/ldbl-opt') diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-compat.c b/sysdeps/ieee754/ldbl-opt/nldbl-compat.c index bf54090d4f..ffb5fabebe 100644 --- a/sysdeps/ieee754/ldbl-opt/nldbl-compat.c +++ b/sysdeps/ieee754/ldbl-opt/nldbl-compat.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include -- cgit 1.4.1