* src/w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro.

This commit is contained in:
Ken Brown 2013-03-23 20:48:49 -04:00
parent 4f3576ee21
commit 789b5e9a7f
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,9 @@
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>

View file

@ -7759,6 +7759,9 @@ emacs_abort (void)
#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)
{