aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorChong Yidong2009-12-09 01:06:32 +0000
committerChong Yidong2009-12-09 01:06:32 +0000
commita4ef73c887614e05e4d0039419da0bcf1a073f00 (patch)
tree343cf054d29dd570688a8ba946c5841660a75762 /src/emacs.c
parent0f0ea87e8c03aa623de5632ecacd3621ffe410a5 (diff)
downloademacs-a4ef73c887614e05e4d0039419da0bcf1a073f00.tar.gz
emacs-a4ef73c887614e05e4d0039419da0bcf1a073f00.zip
* 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.
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)
809 stack_base = &dummy; 809 stack_base = &dummy;
810#endif 810#endif
811 811
812#if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC)
813 /* This is used by the Cygwin build. */
814 setenv ("G_SLICE", "always-malloc", 1);
815#endif
816
812 if (!initialized) 817 if (!initialized)
813 { 818 {
814 extern char my_endbss[]; 819 extern char my_endbss[];