about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-06-06 14:39:23 -0700
committerRichard Henderson <rth@twiddle.net>2012-06-06 14:39:23 -0700
commit43ac6d266566b995c0c184dd964987c23ce1e969 (patch)
treed30f9ae1a56ca08b53ae2504fae5216329537cb4
parentb2afe910fb24a9c53f78a9af3ecd18340d3c2b87 (diff)
downloadglibc-43ac6d266566b995c0c184dd964987c23ce1e969.tar.gz
glibc-43ac6d266566b995c0c184dd964987c23ce1e969.tar.xz
glibc-43ac6d266566b995c0c184dd964987c23ce1e969.zip
alpha: Fix ev4 build with ev6 compiler
-rw-r--r--ChangeLog.alpha3
-rw-r--r--sysdeps/alpha/fpu/e_sqrt.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index ceee910c3c..0598d7ee19 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 22b24b53f3..ad10dade03 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)