xterm/xterm-sigwinch.patch

17 lines
514 B
Diff
Raw Normal View History

# HG changeset patch
# Parent 547d2ea5029c2c3edd129a9d23e424877c6f29f0
Index: xterm-385/screen.c
===================================================================
--- xterm-385.orig/screen.c
+++ xterm-385/screen.c
@@ -2257,7 +2257,7 @@ ScreenResize(XtermWidget xw,
#ifdef TTYSIZE_STRUCT
if (update_winsize(screen, rows, cols, height, width) == 0) {
-#if defined(SIGWINCH) && defined(TIOCGPGRP)
+#if defined(SIGWINCH) && (defined(TIOCGPGRP) || defined(linux))
if (screen->pid > 1) {
int pgrp;