changeset 75407:205d5c1af245

(interrupt_input_blocked): Declare volatile.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 26 Jan 2007 08:36:18 +0000
parents b176aeeb7253
children 5b7720054d45
files src/blockinput.h src/keyboard.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/blockinput.h	Fri Jan 26 08:35:54 2007 +0000
+++ b/src/blockinput.h	Fri Jan 26 08:36:18 2007 +0000
@@ -49,7 +49,7 @@
    interrupt_input_pending to a non-zero value.  If that flag is set
    when input becomes unblocked, UNBLOCK_INPUT will send a new SIGIO.  */
 
-extern int interrupt_input_blocked;
+extern volatile int interrupt_input_blocked;
 
 /* Nonzero means an input interrupt has arrived
    during the current critical section.  */
--- a/src/keyboard.c	Fri Jan 26 08:35:54 2007 +0000
+++ b/src/keyboard.c	Fri Jan 26 08:36:18 2007 +0000
@@ -90,7 +90,7 @@
 /* Variables for blockinput.h: */
 
 /* Non-zero if interrupt input is blocked right now.  */
-int interrupt_input_blocked;
+volatile int interrupt_input_blocked;
 
 /* Nonzero means an input interrupt has arrived
    during the current critical section.  */