--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.cc 2009-09-25 21:06:31 +0000 +++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.cc 2009-09-25 20:52:59 +0000 @@ -36,10 +36,11 @@ #include // For errno #include #include #include #include +#include namespace std { template<> void --- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.h 2009-09-25 21:06:31 +0000 +++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.h 2009-09-25 20:19:36 +0000 @@ -106,11 +106,11 @@ std::setlocale(LC_ALL, "C"); # endif #endif va_start(__args, __fmt); - const int __ret = std::vsnprintf(__out, __size, __fmt, __args); + const int __ret = std::vsprintf(__out, __fmt, __args); va_end(__args); #ifdef __UCLIBC_HAS_XCLOCALE__ __gnu_cxx::__uselocale(__old); #elif defined __UCLIBC_HAS_LOCALE__ --- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc 2009-09-25 21:06:30 +0000 +++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc 2009-09-25 20:32:22 +0000 @@ -33,10 +33,12 @@ // Written by Benjamin Kosnik #include #include +#include +#include namespace std { // Specializations. #ifdef _GLIBCXX_USE_WCHAR_T --- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2009-09-25 21:06:31 +0000 +++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2009-09-25 20:48:33 +0000 @@ -45,11 +45,11 @@ namespace std { // NB: The other ctype specializations are in src/locale.cc and // various /config/os/* files. - template<> +// template<> ctype_byname::ctype_byname(const char* __s, size_t __refs) : ctype(0, false, __refs) { if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) { --- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2009-09-25 21:06:31 +0000 +++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2009-09-25 20:51:17 +0000 @@ -46,10 +46,12 @@ #ifdef __UCLIBC_MJN3_ONLY__ #warning optimize this for uclibc #warning tailor for stub locale support #endif +#include + namespace std { // Construct and return valid pattern consisting of some combination of: // space none symbol sign value money_base::pattern --- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/time_members.cc 2009-09-25 21:06:30 +0000 +++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/time_members.cc 2009-09-25 20:51:45 +0000 @@ -39,10 +39,12 @@ #ifdef __UCLIBC_MJN3_ONLY__ #warning tailor for stub locale support #endif +#include + namespace std { template<> void __timepunct::