OSDN Git Service

* testsuite/testsuite_performance.h: Portability.
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2003 06:41:38 +0000 (06:41 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2003 06:41:38 +0000 (06:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68407 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/testsuite_performance.h

index c1acd15..3f7f5d8 100644 (file)
@@ -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>
 
index 598571b..9aea757 100644 (file)
 
 #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;