1 diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
2 index 51d79f9c2ec59..fafd7d6fc1e0d 100644
3 --- a/modules/fdlibm/src/math_private.h
4 +++ b/modules/fdlibm/src/math_private.h
6 * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
9 +#if defined __FLT_EVAL_METHOD__ && (__FLT_EVAL_METHOD__ == 2)
10 +typedef long double __double_t;
12 typedef double __double_t;
14 typedef __double_t double_t;