[flang][runtime] Fixed aarach buildbots after #83169.
GitOrigin-RevId: f20ea05f3b2218a7103612e5e367398b0b27bb27
diff --git a/include/flang/Common/float128.h b/include/flang/Common/float128.h
index 6aa98df..61b3a77 100644
--- a/include/flang/Common/float128.h
+++ b/include/flang/Common/float128.h
@@ -20,6 +20,8 @@
#ifndef FORTRAN_COMMON_FLOAT128_H_
#define FORTRAN_COMMON_FLOAT128_H_
+#include <float.h>
+
#ifdef __cplusplus
/*
* libc++ does not fully support __float128 right now, e.g.
diff --git a/runtime/complex-reduction.c b/runtime/complex-reduction.c
index 06e4f15..72c31ce 100644
--- a/runtime/complex-reduction.c
+++ b/runtime/complex-reduction.c
@@ -76,6 +76,7 @@
#endif
#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
+#ifndef CMPLXF128
/*
* GCC 7.4.0 (currently minimum GCC version for llvm builds)
* supports __builtin_complex. For Clang, require >=12.0.
@@ -95,6 +96,7 @@
}
#endif
#endif
+#endif
/* RTNAME(SumComplex4) calls RTNAME(CppSumComplex4) with the same arguments
* and converts the members of its C++ complex result to C _Complex.