diff --git a/backends/swiften/main.cpp b/backends/swiften/main.cpp index f0acdb6dab291246e0a9469e6038ed16dfe6dd13..6c111464872c99efdf7f1a3b807cd00241d43d41 100644 --- a/backends/swiften/main.cpp +++ b/backends/swiften/main.cpp @@ -227,10 +227,12 @@ class SwiftenPlugin : public NetworkPlugin, Swift::XMPPParserClient { #ifndef WIN32 #ifndef __FreeBSD__ #ifndef __MACH__ +#if defined (__GLIBC__) // force returning of memory chunks allocated by libxml2 to kernel malloc_trim(0); #endif #endif +#endif #endif }