Commit 3e083bea by Loren J. Rittle Committed by Loren J. Rittle

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

From-SVN: r70244
parent 7ce27ffb
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
......
......@@ -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"
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment