This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH 3/5] alpha: Fix ev4 build with ev6 compiler
- From: Richard Henderson <rth at twiddle dot net>
- To: libc-ports at sourceware dot org
- Date: Wed, 6 Jun 2012 14:52:02 -0700
- Subject: [PATCH 3/5] alpha: Fix ev4 build with ev6 compiler
- References: <1339019524-32478-1-git-send-email-rth@twiddle.net>
---
ChangeLog.alpha | 3 +++
sysdeps/alpha/fpu/e_sqrt.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index ceee910..0598d7e 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,8 @@
2012-06-06 Richard Henderson <rth@twiddle.net>
+ * sysdeps/alpha/fpu/e_sqrt.c: Include <math_private.h> before
+ redefining __ieee758_sqrt.
+
* sysdeps/alpha/alphaev6/stxcpy.S: Use cfi markup instead of
dual ecoff procedure descriptors.
* sysdeps/alpha/alphaev6/stxncpy.S: Likewise.
diff --git a/sysdeps/alpha/fpu/e_sqrt.c b/sysdeps/alpha/fpu/e_sqrt.c
index 22b24b5..ad10dad 100644
--- a/sysdeps/alpha/fpu/e_sqrt.c
+++ b/sysdeps/alpha/fpu/e_sqrt.c
@@ -16,7 +16,8 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
-#include <features.h>
+#include <math.h>
+#include <math_private.h>
#if !defined(_IEEE_FP_INEXACT)
--
1.7.7.6