Commit a4ef73c8 authored by Chong Yidong's avatar Chong Yidong
Browse files

* 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.
parent 0f0ea87e
2009-12-09 Ken Brown <> (tiny change)
* Allow compiling Emacs with GTK on Cygwin.
2009-12-01 Glenn Morris <>
* make-dist: Add etc/images/mpc directory.
......@@ -3026,16 +3026,6 @@ fi
if test "$USE_X_TOOLKIT" = GTK; then
case "$canonical" in
echo "There are known problems with Emacs and Gtk+ on cygwin, so you
will probably get a crash on startup. If this happens, please use another
toolkit for Emacs. See etc/PROBLEMS for more information."
if test "$HAVE_NS" = "yes"; then
echo "You must run \"make install\" in order to test the built application.
2009-12-09 Ken Brown <> (tiny change)
* s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
* emacs.c (main): Set the G_SLICE environment variable for Cygwin
GTK builds.
2009-12-07 Andreas Schwab <>
* unexelf.c (unexec): Don't search for .data twice.
......@@ -809,6 +809,11 @@ main (int argc, char **argv)
stack_base = &dummy;
#if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC)
/* This is used by the Cygwin build. */
setenv ("G_SLICE", "always-malloc", 1);
if (!initialized)
extern char my_endbss[];
......@@ -126,6 +126,12 @@ along with GNU Emacs. If not, see <>. */
/* Virtual addresses of pure and impure space can vary, as on Windows. */
/* Emacs supplies its own malloc, but glib (part of Gtk+) calls
memalign and on Cygwin, that becomes the Cygwin-supplied memalign.
As malloc is not the Cygwin malloc, the Cygwin memalign always
returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */
/* the end */
/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment