diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index a024138e97cb5feccab77f381eb2fd75e6ed2878..ed5d9b5128cc5527e4704aa3330c753778238fc5 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -17,6 +17,7 @@ #include "transport/adhocmanager.h" #include "transport/settingsadhoccommand.h" #include "Swiften/EventLoop/SimpleEventLoop.h" +#include "Swiften/Network/BoostNetworkFactories.h" #include #include #ifndef WIN32 @@ -27,8 +28,10 @@ #include #include "libgen.h" #ifndef __FreeBSD__ +#ifndef __MACH__ #include #endif +#endif #else #include #define getpid _getpid @@ -307,10 +310,12 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); #ifndef WIN32 #ifndef __FreeBSD__ +#ifndef __MACH__ mallopt(M_CHECK_ACTION, 2); mallopt(M_PERTURB, 0xb); #endif #endif +#endif #ifndef WIN32 if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) {