--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnump/patches/008-ismpz.cc.patch Mon May 09 11:36:28 2011 -0700
@@ -0,0 +1,31 @@
+--- cxx/ismpz.cc.orig 2007-09-01 03:09:03.000000000 -0700
++++ cxx/ismpz.cc 2008-04-18 10:06:50.866243982 -0700
+@@ -20,11 +20,11 @@
+ #include <cctype>
+ #include <iostream>
+ #include <string>
+-#include "gmp.h"
+-#include "gmp-impl.h"
+-
++#include <clocale>
+ using namespace std;
+
++#include "gmp.h"
++#include "gmp-impl.h"
+
+ // For g++ libstdc++ parsing see num_get<chartype,initer>::_M_extract_int in
+ // include/bits/locale_facets.tcc.
+@@ -38,7 +38,12 @@
+ if (i.flags() & ios::skipws) // skip initial whitespace
+ {
+ #if HAVE_STD__LOCALE
+- const ctype<char>& ct = use_facet< ctype<char> >(i.getloc());
++ const ctype<char>& ct =
++#ifndef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE
++ use_facet< ctype<char> >(i.getloc());
++#else
++ use_facet(i.getloc(),(ctype<char>*)0);
++#endif
+ #define cxx_isspace(c) (ct.is(ctype_base::space,(c)))
+ #else
+ #define cxx_isspace(c) isspace(c)