--- /dev/null
+--- glibc-2.2.5/sysdeps/sparc/fpu/bits/mathinline.h 2001-11-28 21:13:08.000000000 +0000
++++ glibc-2.3.1/sysdeps/sparc/fpu/bits/mathinline.h 2002-05-16 01:16:23.000000000 +0100
+@@ -1,5 +1,5 @@
+ /* Inline math functions for SPARC.
+- Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
++ Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by Jakub Jelinek <jakub@redhat.com>.
+
+@@ -213,16 +213,16 @@
+
+ # ifndef __NO_MATH_INLINES
+
+-__MATH_INLINE double fdim (double __x, double __y);
++__MATH_INLINE double fdim (double __x, double __y) __THROW;
+ __MATH_INLINE double
+-fdim (double __x, double __y)
++fdim (double __x, double __y) __THROW
+ {
+ return __x < __y ? 0 : __x - __y;
+ }
+
+-__MATH_INLINE float fdimf (float __x, float __y);
++__MATH_INLINE float fdimf (float __x, float __y) __THROW;
+ __MATH_INLINE float
+-fdimf (float __x, float __y)
++fdimf (float __x, float __y) __THROW
+ {
+ return __x < __y ? 0 : __x - __y;
+ }
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.2.5-r7.ebuild,v 1.21 2002/11/02 21:05:19 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.2.5-r7.ebuild,v 1.22 2002/11/02 21:18:16 cretin Exp $
IUSE="nls pic build"
fi
# Some patches to fixup build on sparc and sparc64
+
+ #This is a sparc mathinline.h update, fixes problems with C++ and the mathinline header, cretin@gentoo.org
+ einfo "Applying sparc-mathinline patch..."
+ cd ${S}; patch -p1 < ${FILESDIR}/${PV}/${P}-sparc-mathinline.patch > /dev/null || die
+
if use sparc64 > /dev/null || use sparc > /dev/null
then
einfo "Applying sparc-misc patch..."