--- gettext-0.22.4/gettext-tools/gnulib-lib/math.in.h.bak 2023-11-17 22:34:11.000000000 +0100 +++ gettext-0.22.4/gettext-tools/gnulib-lib/math.in.h 2024-02-13 14:20:15.453314684 +0100 @@ -2668,7 +2668,7 @@ _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool) # define isnan rpl_isnan # define GNULIB_NAMESPACE_LACKS_ISNAN 1 -# elif (defined __FreeBSD__ && __clang_major__ >= 14) +# elif (((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__) && __clang_major__ >= 14) /* Neither of the two possible _GL_MATH_CXX_REAL_FLOATING_DECL_2 invocations works. Inline functions are already present in /usr/include/c++/v1/math.h, which comes from LLVM. */