Commit d1a2c4d6 by Loren J. Rittle Committed by Loren J. Rittle

* testsuite/testsuite_performance.h: Portability.

From-SVN: r68407
parent 3d57d7ba
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* config/abi/sparc-freebsd5/baseline_symbols.txt: New file. * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
* include/ext/mt_allocator.h: Portability. * include/ext/mt_allocator.h: Portability.
* testsuite/testsuite_performance.h: Likewise.
2003-06-23 Benjamin Kosnik <bkoz@redhat.com> 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
......
...@@ -33,7 +33,11 @@ ...@@ -33,7 +33,11 @@
#include <sys/times.h> #include <sys/times.h>
#include <sys/resource.h> #include <sys/resource.h>
#ifdef __FreeBSD__
#include <stdlib.h>
#else
#include <malloc.h> #include <malloc.h>
#endif
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <iomanip> #include <iomanip>
...@@ -81,6 +85,11 @@ namespace __gnu_cxx_test ...@@ -81,6 +85,11 @@ namespace __gnu_cxx_test
{ return tms_end.tms_stime - tms_begin.tms_stime; } { return tms_end.tms_stime - tms_begin.tms_stime; }
}; };
#ifdef __FreeBSD__
struct mallinfo { int arena; };
int mallinfo (void) { return 0; }
#endif
class resource_counter class resource_counter
{ {
int who; int who;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment