summaryrefslogtreecommitdiff
path: root/src/s/cygwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s/cygwin.h')
-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/>. */
/* Virtual addresses of pure and impure space can vary, as on Windows. */
#define VIRT_ADDR_VARIES
+/* 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. */
+#define G_SLICE_ALWAYS_MALLOC
+
/* the end */
/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b