* testsuite/testsuite_performance.h: Portability.
[gcc.git] / libstdc++-v3 / testsuite / testsuite_performance.h
index 598571b07ea7c321dbcf1f37518cda03b0c30283..9aea757445833e8c43e84c0a6df2d88b3ee1ee7e 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;