From 80ef6d1c91db0a50b7b0ac522ac97d6f5f295867 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 7 Aug 2007 08:57:06 +0000 Subject: [PATCH] (main) [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: Call malloc_enable_thread on interactive startup. --- src/emacs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/emacs.c b/src/emacs.c index f70588634d9..b356faa68ae 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1157,6 +1157,13 @@ main (argc, argv #if defined (USG5) && defined (INTERRUPT_INPUT) setpgrp (); #endif +#endif +#if defined (HAVE_GTK_AND_PTHREAD) && !defined (SYSTEM_MALLOC) && !defined (DOUG_LEA_MALLOC) + { + extern void malloc_enable_thread P_ ((void)); + + malloc_enable_thread (); + } #endif } -- 2.39.2