* testsuite/testsuite_performance.h: Portability.

From-SVN: r68407
This commit is contained in:
Loren J. Rittle 2003-06-24 06:41:38 +00:00 committed by Loren J. Rittle
parent 3d57d7bafa
commit d1a2c4d688
2 changed files with 10 additions and 0 deletions

View File

@ -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>

View File

@ -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
{ 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;