X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2Ftestsuite_performance.h;h=625de579b00c72f94bb478024f20c0252cfd22a0;hp=b55ed9121df57746186569725ff778ee99d89af9;hb=20eb1a6aae4f2a30fec3206bb2910f01025072a0;hpb=162df2b3bc186da708fab8cb53310dd410821fc5;ds=sidebyside diff --git a/libstdc++-v3/testsuite/testsuite_performance.h b/libstdc++-v3/testsuite/testsuite_performance.h index b55ed9121df..625de579b00 100644 --- a/libstdc++-v3/testsuite/testsuite_performance.h +++ b/libstdc++-v3/testsuite/testsuite_performance.h @@ -28,8 +28,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _GLIBCPP_PERFORMANCE_H -#define _GLIBCPP_PERFORMANCE_H +#ifndef _GLIBCXX_PERFORMANCE_H +#define _GLIBCXX_PERFORMANCE_H #include #include @@ -40,6 +40,13 @@ #ifdef __linux__ #include +#elif defined (__FreeBSD__) +extern "C" +{ + struct mallinfo { int uordblks; }; + struct mallinfo mallinfo(void) + { struct mallinfo m = { (((size_t) sbrk (0) + 1023) / 1024) }; return m; } +} #else extern "C" { @@ -49,7 +56,7 @@ extern "C" } #endif -namespace __gnu_cxx_test +namespace __gnu_test { class time_counter { @@ -190,7 +197,7 @@ namespace __gnu_cxx_test out << std::endl; out.close(); } -}; // namespace __gnu_cxx_test +}; // namespace __gnu_test -#endif // _GLIBCPP_PERFORMANCE_H +#endif // _GLIBCXX_PERFORMANCE_H