summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-08-07 08:57:06 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-08-07 08:57:06 +0000
commit80ef6d1c91db0a50b7b0ac522ac97d6f5f295867 (patch)
tree7b57867aeacea0e57ea57b22f279f923987d6856 /src/emacs.c
parenta460c94c17df42cdb7116453f070ed2093b75c4d (diff)
downloademacs-80ef6d1c91db0a50b7b0ac522ac97d6f5f295867.tar.gz
(main) [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
Call malloc_enable_thread on interactive startup.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index f70588634d9..b356faa68ae 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1158,6 +1158,13 @@ main (argc, argv
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
}
init_signals ();