diff options
-rw-r--r-- | src/signals.c | 5 | ||||
-rw-r--r-- | src/signals.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/signals.c b/src/signals.c index 3dac82c..cee5ece 100644 --- a/src/signals.c +++ b/src/signals.c @@ -50,6 +50,11 @@ sigdisable(int signo) disable = 1; } +#else /* ! HAVE_SIGNAL_H || __WIN32__ */ + +int disable = 0; +int exiting = 0; + #endif /* ! HAVE_SIGNAL_H || __WIN32__ */ diff --git a/src/signals.h b/src/signals.h index 36cdaf1..7a1d22e 100644 --- a/src/signals.h +++ b/src/signals.h @@ -27,8 +27,8 @@ extern volatile sig_atomic_t exiting; extern volatile sig_atomic_t disable; #else /* ! HAVE_SIGNAL_H || __WIN32__ */ -# define exiting 0 -# define disable 0 +extern int exiting; +extern int disable; #endif /* ! HAVE_SIGNAL_H || __WIN32__ */ |