* testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.

From-SVN: r70244
This commit is contained in:
Loren J. Rittle 2003-08-08 07:51:54 +00:00 committed by Loren J. Rittle
parent 7ce27ffb6f
commit 3e083bea6c
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-08-08 Loren J. Rittle <ljrittle@acm.org>
* testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2003-08-07 Doug Gregor <dgregor@apple.com>
* include/bits/char_traits.h (char_traits::not_eof): Match operand

View file

@ -40,6 +40,13 @@
#ifdef __linux__
#include <malloc.h>
#elif defined (__FreeBSD__)
extern "C"
{
struct mallinfo { int uordblks; };
struct mallinfo mallinfo(void)
{ struct mallinfo m = { (((size_t) sbrk (0) + 1023) / 1024) }; return m; }
}
#else
extern "C"
{