aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal.cpp')
-rw-r--r--src/signal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/signal.cpp b/src/signal.cpp
index 8aa55828..60066d3d 100644
--- a/src/signal.cpp
+++ b/src/signal.cpp
@@ -198,11 +198,13 @@ static void default_handler(int signal, siginfo_t *info, void *context) {
}
}
+#ifdef SIGWINCH
/// Respond to a winch signal by checking the terminal size.
static void handle_winch(int sig, siginfo_t *info, void *context) {
common_handle_winch(sig);
default_handler(sig, 0, 0);
}
+#endif
/// Respond to a hup signal by exiting, unless it is caught by a shellscript function, in which case
/// we do nothing.