diff --git a/backends/swiften/main.cpp b/backends/swiften/main.cpp index 93137352ebd82ebc499a85cb71585e30ab983247..db6ea37ba2d15b7dd0330ed67903df5da0b59f4c 100644 --- a/backends/swiften/main.cpp +++ b/backends/swiften/main.cpp @@ -17,9 +17,11 @@ #endif #ifndef __FreeBSD__ +#ifndef __MACH__ // malloc_trim #include "malloc.h" #endif +#endif // Boost #include @@ -189,9 +191,11 @@ class SwiftenPlugin : public NetworkPlugin { #ifndef WIN32 #ifndef __FreeBSD__ +#ifndef __MACH__ // force returning of memory chunks allocated by libxml2 to kernel malloc_trim(0); #endif +#endif #endif }