Index: unexw32.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/unexw32.c,v retrieving revision 1.22 diff -c -r1.22 unexw32.c *** unexw32.c 4 Feb 2003 14:03:13 -0000 1.22 --- unexw32.c 18 Mar 2003 16:19:04 -0000 *************** *** 83,88 **** --- 83,92 ---- PIMAGE_SECTION_HEADER heap_section; + /* Needed by the Mingw CRT to override _fmode, setting down in _start + doesn't work, it gets reset somewhere in mainCRTStartup() */ + int _fmode = O_BINARY; + #ifdef HAVE_NTGUI HINSTANCE hinst = NULL; HINSTANCE hprevinst = NULL;