summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index d96b3a1daf1..8b88985969b 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -809,6 +809,11 @@ main (int argc, char **argv)
stack_base = &dummy;
#endif
+#if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC)
+ /* This is used by the Cygwin build. */
+ setenv ("G_SLICE", "always-malloc", 1);
+#endif
+
if (!initialized)
{
extern char my_endbss[];