mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 08:13:58 +08:00
* testsuite/testsuite_performance.h: Portability.
From-SVN: r68407
This commit is contained in:
parent
3d57d7bafa
commit
d1a2c4d688
@ -8,6 +8,7 @@
|
||||
* config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
|
||||
|
||||
* include/ext/mt_allocator.h: Portability.
|
||||
* testsuite/testsuite_performance.h: Likewise.
|
||||
|
||||
2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
|
@ -33,7 +33,11 @@
|
||||
|
||||
#include <sys/times.h>
|
||||
#include <sys/resource.h>
|
||||
#ifdef __FreeBSD__
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
@ -81,6 +85,11 @@ namespace __gnu_cxx_test
|
||||
{ return tms_end.tms_stime - tms_begin.tms_stime; }
|
||||
};
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
struct mallinfo { int arena; };
|
||||
int mallinfo (void) { return 0; }
|
||||
#endif
|
||||
|
||||
class resource_counter
|
||||
{
|
||||
int who;
|
||||
|
Loading…
Reference in New Issue
Block a user