From: YAMAMOTO Mitsuharu Date: Fri, 26 Jan 2007 08:36:18 +0000 (+0000) Subject: (interrupt_input_blocked): Declare volatile. X-Git-Tag: emacs-pretest-22.0.94~623 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf2db1459f7b60659b2e0d52f292072c018660ec;p=emacs.git (interrupt_input_blocked): Declare volatile. --- diff --git a/src/blockinput.h b/src/blockinput.h index fcaa64723bc..468f0e0c762 100644 --- a/src/blockinput.h +++ b/src/blockinput.h @@ -49,7 +49,7 @@ Boston, MA 02110-1301, USA. */ 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 --git a/src/keyboard.c b/src/keyboard.c index ca1c1d5168f..48cf2673a90 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -90,7 +90,7 @@ extern int errno; /* 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. */