diff options
| author | YAMAMOTO Mitsuharu | 2007-01-26 08:36:18 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-01-26 08:36:18 +0000 |
| commit | cf2db1459f7b60659b2e0d52f292072c018660ec (patch) | |
| tree | 607685a91c742974adc62b72cabcae77f36d512a | |
| parent | 86302e37c36884d68b7ba0de801abb2b372a84bd (diff) | |
| download | emacs-cf2db1459f7b60659b2e0d52f292072c018660ec.tar.gz emacs-cf2db1459f7b60659b2e0d52f292072c018660ec.zip | |
(interrupt_input_blocked): Declare volatile.
| -rw-r--r-- | src/blockinput.h | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 2 |
2 files changed, 2 insertions, 2 deletions
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. */ | |||
| 49 | interrupt_input_pending to a non-zero value. If that flag is set | 49 | interrupt_input_pending to a non-zero value. If that flag is set |
| 50 | when input becomes unblocked, UNBLOCK_INPUT will send a new SIGIO. */ | 50 | when input becomes unblocked, UNBLOCK_INPUT will send a new SIGIO. */ |
| 51 | 51 | ||
| 52 | extern int interrupt_input_blocked; | 52 | extern volatile int interrupt_input_blocked; |
| 53 | 53 | ||
| 54 | /* Nonzero means an input interrupt has arrived | 54 | /* Nonzero means an input interrupt has arrived |
| 55 | during the current critical section. */ | 55 | 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; | |||
| 90 | /* Variables for blockinput.h: */ | 90 | /* Variables for blockinput.h: */ |
| 91 | 91 | ||
| 92 | /* Non-zero if interrupt input is blocked right now. */ | 92 | /* Non-zero if interrupt input is blocked right now. */ |
| 93 | int interrupt_input_blocked; | 93 | volatile int interrupt_input_blocked; |
| 94 | 94 | ||
| 95 | /* Nonzero means an input interrupt has arrived | 95 | /* Nonzero means an input interrupt has arrived |
| 96 | during the current critical section. */ | 96 | during the current critical section. */ |