From d603c20909faeec8cf1ca1f85418d82ddde631db Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Fri, 24 Jul 2020 15:17:00 +0000 Subject: games/powwow: update 1.2.17 -> 1.2.22 PR: 247902 Submitted by: Juraj Lutter (maintainer) Relnotes: https://www.hoopajoo.net/projects/powwow.html https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247902#c0 --- games/powwow/files/patch-follow.c | 65 --------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 games/powwow/files/patch-follow.c (limited to 'games/powwow/files/patch-follow.c') diff --git a/games/powwow/files/patch-follow.c b/games/powwow/files/patch-follow.c deleted file mode 100644 index a201b02ccb11..000000000000 --- a/games/powwow/files/patch-follow.c +++ /dev/null @@ -1,65 +0,0 @@ -Index: follow.c -@@ -13,7 +13,9 @@ - #include - #include - --#ifndef USE_SGTTY -+#ifdef POSIX -+# include -+#elif !defined(USE_SGTTY) - # ifdef APOLLO - # include "/sys5.3/usr/include/sys/termio.h" - # else -@@ -44,6 +46,9 @@ - # define O_CBREAK CBREAK - #endif - -+#ifdef POSIX -+typedef struct termios termiostruct; -+#else - #if defined(TCSETS) || defined(TCSETATTR) - # ifndef TCSETS /* cc for HP-UX SHOULD define this... */ - # define TCSETS TCSETATTR -@@ -55,6 +60,7 @@ - # define TCGETS TCGETA - typedef struct termio termiostruct; - #endif -+#endif /* POSIX */ - - #ifdef VSUSP - # define O_SUSP VSUSP -@@ -102,14 +108,22 @@ - ioctl(0, TIOCSLTC, <c); - #else /* not USE_SGTTY */ - termiostruct ttyb; -+#if POSIX -+ tcgetattr(0, &ttyb); -+#else - ioctl(0, TCGETS, &ttyb); -+#endif - ttybsave = ttyb; - ttyb.c_lflag &= ~(ECHO|ICANON); - ttyb.c_cc[VTIME] = 0; - ttyb.c_cc[VMIN] = 1; - /* disable the special handling of the suspend key (handle it ourselves) */ - ttyb.c_cc[O_SUSP] = 0; -+#if POSIX -+ tcsetattr(0, TCSANOW, &ttyb); -+#else - ioctl(0, TCSETS, &ttyb); -+#endif - #endif /* USE_SGTTY */ - } - -@@ -123,7 +137,11 @@ - ioctl(0, TIOCSETC, &tcsave); - ioctl(0, TIOCSLTC, <csave); - #else /* not USE_SGTTY */ -+#if POSIX -+ tcsetattr(0, TCSANOW, &ttybsave); -+#else - ioctl(0, TCSETS, &ttybsave); -+#endif - #endif /* USE_SGTTY */ - } - -- cgit v1.2.3