summaryrefslogtreecommitdiff
path: root/sig.h
diff options
context:
space:
mode:
Diffstat (limited to 'sig.h')
-rw-r--r--sig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sig.h b/sig.h
index 392072f2..eba65ec7 100644
--- a/sig.h
+++ b/sig.h
@@ -25,6 +25,10 @@
#include "stdc.h"
+#if !defined (SIG_DFL)
+# include <signal.h> /* for sig_atomic_t */
+#endif
+
#if !defined (SIGABRT) && defined (SIGIOT)
# define SIGABRT SIGIOT
#endif
@@ -104,7 +108,8 @@ do { \
#endif /* !HAVE_POSIX_SIGNALS */
/* Extern variables */
-extern volatile int sigwinch_received;
+extern sig_atomic_t sigwinch_received;
+extern sig_atomic_t sigterm_received;
extern int interrupt_immediately;
extern int terminate_immediately;