Changeset - c63df9499f11
[Not reviewed]
0 3 0
Jan Kaluza - 13 years ago 2012-10-09 10:01:51
hanzz.k@gmail.com
Do not include malloc.h on BSD
3 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/skype/main.cpp
Show inline comments
 
@@ -19,7 +19,9 @@
 
#include "sys/wait.h"
 
#include "sys/signal.h"
 
// #include "valgrind/memcheck.h"
 
#ifndef __FreeBSD__
 
#include "malloc.h"
 
#endif
 
#include <dbus-1.0/dbus/dbus-glib-lowlevel.h>
 

	
 

	
backends/swiften/main.cpp
Show inline comments
 
@@ -14,8 +14,10 @@
 
#include "sys/signal.h"
 
#endif
 

	
 
#ifndef __FreeBSD__
 
// malloc_trim
 
#include "malloc.h"
 
#endif
 

	
 
// Boost
 
#include <boost/algorithm/string.hpp>
 
@@ -106,8 +108,10 @@ class SwiftenPlugin : public NetworkPlugin {
 
			}
 

	
 
#ifndef WIN32
 
#ifndef __FreeBSD__
 
			// force returning of memory chunks allocated by libxml2 to kernel
 
			malloc_trim(0);
 
#endif
 
#endif
 
		}
 

	
spectrum/src/main.cpp
Show inline comments
 
@@ -26,7 +26,9 @@
 
#include <grp.h>
 
#include <sys/resource.h>
 
#include "libgen.h"
 
#ifndef __FreeBSD__
 
#include <malloc.h>
 
#endif
 
#else
 
#include <process.h>
 
#define getpid _getpid
0 comments (0 inline, 0 general)