Path: blob/main/editors/beav/files/patch-tcap.c
16461 views
--- tcap.c.orig 2013-12-12 17:16:34.000000000 +01001+++ tcap.c 2013-12-12 17:17:40.000000000 +01002@@ -41,11 +41,12 @@ char *UP, PC, *CM, *CE, *CL, *SO, *SE, *34#ifdef BSD5#include <sys/ioctl.h>6+#ifdef TIOCGWINSZ7struct winsize ttysize;8-#endif /* BSD */9-#ifdef ULTRIX10-struct winsize ttysize;11+#else12+struct ttysize ttysize;13#endif14+#endif /* BSD */1516void17putpad (str)18@@ -62,9 +63,6 @@ tcapopen ()19char tcbuf[1024];20char *tv_stype;21char err_str[NCOL];22-#ifdef ULTRIX23- struct winsize ttysize;24-#endif2526nrow = NROW;2728@@ -89,7 +87,7 @@ tcapopen ()293031#ifdef BSD32-#ifdef ULTRIX33+#ifdef TIOCGWINSZ34if (ioctl (0, TIOCGWINSZ, &ttysize) == 035&& ttysize.ws_row > 0)36{37@@ -103,7 +101,7 @@ tcapopen ()38nrow = ttysize.ts_lines;39}40else41-#endif /* ULTRIX */42+#endif /* TIOCGWINSZ */43#endif /* BSD */4445#ifndef OS2464748