2013-03-24 Ken Brown <kbrown@cornell.edu>
+ * w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro to
+ fix compilation on 64-bit Cygwin, where underscores are not
+ automatically prepended.
+
* w32term.c (w32_initialize): Silence compiler warning.
2013-03-23 Eli Zaretskii <eliz@gnu.org>
#endif
if (stderr_fd >= 0)
write (stderr_fd, "\r\nBacktrace:\r\n", 14);
+#ifdef CYGWIN
+#define _open open
+#endif
errfile_fd = _open ("emacs_backtrace.txt", O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
if (errfile_fd >= 0)
{