Revision: 33009
http://sourceforge.net/p/opalvoip/code/33009
Author: rjongbloed
Date: 2014-10-20 14:26:24 +0000 (Mon, 20 Oct 2014)
Log Message:
-----------
Fixed Linux build
Modified Paths:
--------------
ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
Modified: ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
===================================================================
--- ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2014-10-20 14:15:04 UTC (rev 33008)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2014-10-20 14:26:24 UTC (rev 33009)
@@ -52,6 +52,7 @@
// going to need the main thread for adjusting relative priority
static pthread_t baseThread;
#elif defined(P_LINUX)
+#include <malloc.h>
#include <sys/syscall.h>
#include <fstream>
#elif defined(P_ANDROID)
@@ -1115,7 +1116,7 @@
struct mallinfo info = mallinfo();
usage.m_malloc = info.uordblks;
usage.m_blocks = info.hblks;
- usage.m_free = info.uordblks;
+ usage.m_freed = info.uordblks;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|