aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-08 16:55:27 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-08 16:55:27 -0700
commitdd79082a94b62e0d8c398dcfad19449e72c542da (patch)
tree197b538828d982cfdd0d6170bf34084f8c42c913 /pw.c
parent5475591abf5dee8eb0f559bd6c0620ad3f498250 (diff)
downloadpw-dd79082a94b62e0d8c398dcfad19449e72c542da.tar.gz
pw-dd79082a94b62e0d8c398dcfad19449e72c542da.tar.bz2
pw-dd79082a94b62e0d8c398dcfad19449e72c542da.zip
If there is no SIGWINCH, don't define handler.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pw.c b/pw.c
index 0a75cb2..68bf58c 100644
--- a/pw.c
+++ b/pw.c
@@ -1132,11 +1132,13 @@ static void ttyget(int fd, struct termios *tty)
panic("unable to get TTY parameters");
}
+#ifdef SIGWINCH
static void sigwinch(int sig)
{
(void) sig;
winch = 1;
}
+#endif
static char **resizebuf(char **buf, size_t nlfrom, size_t nlto)
{