# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1169800578 0 # Node ID 205d5c1af24502ed84556267bb96ef1c729969e0 # Parent b176aeeb72539bf6d9b6835f4582d5515dd7b77f (interrupt_input_blocked): Declare volatile. diff -r b176aeeb7253 -r 205d5c1af245 src/blockinput.h --- 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. */ diff -r b176aeeb7253 -r 205d5c1af245 src/keyboard.c --- 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. */