1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/french/xtel/files/patch-modem.c
Will Andrews 015ee1e8e6 Add xtel 3.3.0, an emulator for the french Minitel.
PR:		29286
Submitted by:	Thierry Thomas (<thierry@thomas.as>)
2001-12-25 21:39:56 +00:00

29 lines
735 B
C

--- modem.c.orig Tue Feb 13 10:39:23 2001
+++ modem.c Tue Jul 24 00:03:52 2001
@@ -307,14 +307,14 @@
* (comme le Hayes Optima par exemple)...
*/
#ifdef USE_TERMIOS
- ioctl (fd, TCIOCGETA, &term);
+ ioctl (fd, TIOCGETA, &term);
#else
ioctl (fd, TCGETA, &term);
#endif /* USE_TERMIOS */
if ((term.c_cflag | CLOCAL) == 0) {
term.c_cflag |= CLOCAL;
#ifdef USE_TERMIOS
- ioctl (fd, TCIOCSETA, &term);
+ ioctl (fd, TIOCSETA, &term);
#else
ioctl (fd, TCSETA, &term);
#endif /* USE_TERMIOS */
@@ -592,7 +592,7 @@
if (cmodem) {
term.c_cflag &= ~CLOCAL;
#ifdef USE_TERMIOS
- ioctl (fd, TCIOCSETA, &term);
+ ioctl (fd, TIOCSETA, &term);
#else
ioctl (fd, TCSETA, &term);
#endif /* USE_TERMIOS */