diff --git a/backends/swiften/main.cpp b/backends/swiften/main.cpp index d9199aeb3dbfba5abb8ac1ff3cedc42659c59e1d..6d7340d3548cd8057d827d8379066cbdb42af571 100644 --- a/backends/swiften/main.cpp +++ b/backends/swiften/main.cpp @@ -14,8 +14,10 @@ #include "sys/signal.h" #endif +#ifndef __FreeBSD__ // malloc_trim #include "malloc.h" +#endif // Boost #include @@ -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 }