From ede2ffb4f86b296f6b48154d911bc4cbf201369b Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Tue, 9 Oct 2012 09:49:03 +0200 Subject: [PATCH] Do not call mallopt on BSd --- spectrum/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index 75169b1a..82352ad4 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -130,9 +130,11 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); #ifndef WIN32 +#ifndef __FreeBSD__ mallopt(M_CHECK_ACTION, 2); mallopt(M_PERTURB, 0xb); #endif +#endif #ifndef WIN32 if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) {