This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Jun 2003 01:42:19 -0500 (CDT)
- Subject: PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h
- Reply-to: rittle at labs dot mot dot com
No comment (other than "as obvious", tested in context).
* testsuite/testsuite_performance.h: Portability.
Index: libstdc++-v3/testsuite/testsuite_performance.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/testsuite_performance.h,v
retrieving revision 1.2
diff -c -r1.2 testsuite_performance.h
*** libstdc++-v3/testsuite/testsuite_performance.h 20 Jun 2003 15:26:23 -0000 1.2
--- libstdc++-v3/testsuite/testsuite_performance.h 24 Jun 2003 06:35:55 -0000
***************
*** 33,39 ****
--- 33,43 ----
#include <sys/times.h>
#include <sys/resource.h>
+ #ifdef __FreeBSD__
+ #include <stdlib.h>
+ #else
#include <malloc.h>
+ #endif
#include <string>
#include <fstream>
#include <iomanip>
***************
*** 80,85 ****
--- 84,94 ----
system_time() const
{ return tms_end.tms_stime - tms_begin.tms_stime; }
};
+
+ #ifdef __FreeBSD__
+ struct mallinfo { int arena; };
+ int mallinfo (void) { return 0; }
+ #endif
class resource_counter
{