+2013-08-14 Ken Brown <kbrown@cornell.edu>
+
+ * gmalloc.c (memalign) [CYGWIN]: Rename to emacs_memalign
+ (Bug#15094).
+
2013-08-14 Dmitry Antipov <dmantipov@yandex.ru>
Utility function and macro to copy Lisp string to C string.
void *(*__memalign_hook) (size_t size, size_t alignment);
+/* As of version 1.7.24, Cygwin allows applications to provide their
+ own posix_memalign (but not memalign). But posix_memalign as
+ defined in this file calls memalign, so we have to rename the
+ latter in order to make sure that posix_memalign calls Emacs's
+ memalign. */
+#ifdef CYGWIN
+#define memalign emacs_memalign
+#endif
+
void *
memalign (size_t alignment, size_t size)
{