diff src/signal.c @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children
line wrap: on
line diff
--- a/src/signal.c	Mon Aug 13 11:19:22 2007 +0200
+++ b/src/signal.c	Mon Aug 13 11:20:41 2007 +0200
@@ -31,7 +31,10 @@
 #include "syssignal.h"
 #include "systime.h"
 
-#include "sysfile.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <errno.h>
 
 /* Set to 1 when a quit-check signal (either a SIGIO interrupt or
    the asynch. timeout for poll-for-quit) occurs.  The QUITP
@@ -177,7 +180,7 @@
 	 it needs to stay the way it is. */
       quit_check_signal_happened = 1;
 
-#ifdef WIN32_NATIVE
+#ifdef WINDOWSNT
       can_break_system_calls = 0;
 #else
       /* can_break_system_calls is set when we want to break out of
@@ -417,16 +420,19 @@
       stdout_out ("you can continue or abort.\n");
 #endif /* not SIGTSTP */
       stdout_out ("Auto-save? (y or n) ");
+      fflush (stdout);
       if (((c = getc (stdin)) & ~040) == 'Y')
 	Fdo_auto_save (Qnil, Qnil);
       while (c != '\n')
         c = getc (stdin);
       stdout_out ("Abort (and dump core)? (y or n) ");
+      fflush (stdout);
       if (((c = getc (stdin)) & ~040) == 'Y')
 	abort ();
       while (c != '\n')
         c = getc (stdin);
       stdout_out ("Continuing...\n");
+      fflush (stdout);
       reinit_initial_console ();
       MARK_FRAME_CHANGED (XFRAME (DEVICE_SELECTED_FRAME
 				  (XDEVICE (CONSOLE_SELECTED_DEVICE