aboutsummaryrefslogtreecommitdiffstats
path: root/cad/magic/files/patch-textio__txInput.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-02-19 23:25:01 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-02-19 23:25:01 +0000
commit55b3cd6fc6c0010e7dd026c8d9213371a3d2c1bd (patch)
tree45f08a3faf56c3b8dfb01e15d8b693216687892d /cad/magic/files/patch-textio__txInput.c
parent332aa8a15afdc5b627c1010fd16f10ef68c8f0d7 (diff)
- Update to 7.5.124
PR: 164986 Submitted by: Ports Fury
Diffstat (limited to 'cad/magic/files/patch-textio__txInput.c')
-rw-r--r--cad/magic/files/patch-textio__txInput.c89
1 files changed, 89 insertions, 0 deletions
diff --git a/cad/magic/files/patch-textio__txInput.c b/cad/magic/files/patch-textio__txInput.c
new file mode 100644
index 000000000000..0194eb8423ab
--- /dev/null
+++ b/cad/magic/files/patch-textio__txInput.c
@@ -0,0 +1,89 @@
+--- textio/txInput.c.orig 2012-01-17 02:40:11.000000000 +0900
++++ textio/txInput.c 2012-01-17 02:45:26.000000000 +0900
+@@ -1204,14 +1204,14 @@
+ * ----------------------------------------------------------------------------
+ */
+
+-#if defined(SYSV) || defined(CYGWIN)
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
+
+ void
+ txGetTermState(buf)
+- struct termio *buf;
++ struct termios *buf;
+
+ {
+- ioctl( fileno( stdin ), TCGETA, buf);
++ ioctl( fileno( stdin ), TIOCGETA, buf);
+ }
+
+ #else
+@@ -1244,14 +1244,14 @@
+
+ void
+ txSetTermState(buf)
+-#if defined(SYSV) || defined(CYGWIN)
+- struct termio *buf;
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
++ struct termios *buf;
+ #else
+ txTermState *buf;
+ #endif /* SYSV */
+ {
+-#if defined(SYSV) || defined(CYGWIN)
+- ioctl( fileno(stdin), TCSETAF, buf );
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
++ ioctl( fileno(stdin), TIOCSETAF, buf );
+ #else
+ /* set the current terminal characteristics */
+ (void) ioctl(fileno(stdin), TIOCSETN, (char *) &(buf->tx_i_sgtty) );
+@@ -1279,13 +1279,13 @@
+
+ void
+ txInitTermRec(buf)
+-#if defined(SYSV) || defined(CYGWIN)
+- struct termio *buf;
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
++ struct termios *buf;
+ #else
+ txTermState *buf;
+ #endif /* SYSV */
+ {
+-#if defined(SYSV) || defined(CYGWIN)
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
+ buf->c_lflag = ISIG; /* raw: no echo and no processing, allow signals */
+ buf->c_cc[ VMIN ] = 1;
+ buf->c_cc[ VTIME ] = 0;
+@@ -1300,8 +1300,8 @@
+
+
+
+-#if defined(SYSV) || defined(CYGWIN)
+-struct termio closeTermState;
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
++struct termios closeTermState;
+ #else
+ static txTermState closeTermState;
+ #endif /* SYSV */
+@@ -1327,8 +1327,8 @@
+ void
+ txSaveTerm()
+ {
+-#if defined(SYSV) || defined(CYGWIN)
+- ioctl( fileno( stdin ), TCGETA, &closeTermState);
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
++ ioctl( fileno( stdin ), TIOCGETA, &closeTermState);
+ txEraseChar = closeTermState.c_cc[VERASE];
+ txKillChar = closeTermState.c_cc[VKILL];
+ TxEOFChar = closeTermState.c_cc[VEOF];
+@@ -1368,8 +1368,8 @@
+ void
+ TxSetTerminal()
+ {
+-#if defined(SYSV) || defined(CYGWIN)
+- struct termio buf;
++#if defined(SYSV) || defined(CYGWIN) || defined(__FreeBSD__)
++ struct termios buf;
+ #else
+ txTermState buf;
+ #endif /* SYSV */