aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
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/s
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/s')
-rw-r--r--src/s/cygwin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index 69b826ac932..3dd73c0f6e1 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -126,6 +126,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
126/* Virtual addresses of pure and impure space can vary, as on Windows. */ 126/* Virtual addresses of pure and impure space can vary, as on Windows. */
127#define VIRT_ADDR_VARIES 127#define VIRT_ADDR_VARIES
128 128
129/* Emacs supplies its own malloc, but glib (part of Gtk+) calls
130 memalign and on Cygwin, that becomes the Cygwin-supplied memalign.
131 As malloc is not the Cygwin malloc, the Cygwin memalign always
132 returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */
133#define G_SLICE_ALWAYS_MALLOC
134
129/* the end */ 135/* the end */
130 136
131/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b 137/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b