diff src/emacs.c @ 106497:d06619fa1742

* configure.in: Allow compiling Emacs with GTK on Cygwin. * src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable. * src/emacs.c (main): Set the G_SLICE environment variable for Cygwin GTK builds.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 09 Dec 2009 01:06:32 +0000
parents cd4cbab8bb21
children b92c3979701c
line wrap: on
line diff
--- a/src/emacs.c	Wed Dec 09 01:02:28 2009 +0000
+++ b/src/emacs.c	Wed Dec 09 01:06:32 2009 +0000
@@ -809,6 +809,11 @@
   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[];