1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/devel/ORBacus/files/patch-aa

73 lines
1.7 KiB
Plaintext
Raw Normal View History

*** ob/demo/chat/Client.cpp.orig Mon Jun 8 16:55:23 1998
--- ob/demo/chat/Client.cpp Tue Jun 23 09:57:59 1998
***************
*** 42,48 ****
#ifdef HAVE_TERMIO_H
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
#else
! ioctl(STDIN_FILENO, TCSETS, &TerminalSettings);
#endif
//
--- 42,48 ----
#ifdef HAVE_TERMIO_H
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
#else
! ioctl(STDIN_FILENO, TCSANOW, &TerminalSettings);
#endif
//
***************
*** 129,136 ****
ioctl(STDIN_FILENO, TCGETA, &ctl);
#else
struct termios ctl;
! ioctl(STDIN_FILENO, TCGETS, &TerminalSettings);
! ioctl(STDIN_FILENO, TCGETS, &ctl);
#endif
ctl.c_lflag &= ~(ICANON | ECHO);
ctl.c_cc[VMIN] = 1;
--- 129,136 ----
ioctl(STDIN_FILENO, TCGETA, &ctl);
#else
struct termios ctl;
! tcgetattr(STDIN_FILENO, &TerminalSettings);
! tcgetattr(STDIN_FILENO, &ctl);
#endif
ctl.c_lflag &= ~(ICANON | ECHO);
ctl.c_cc[VMIN] = 1;
***************
*** 138,144 ****
#ifdef HAVE_TERMIO_H
ioctl(STDIN_FILENO, TCSETA, &ctl);
#else
! ioctl(STDIN_FILENO, TCSETS, &ctl);
#endif
//
--- 138,144 ----
#ifdef HAVE_TERMIO_H
ioctl(STDIN_FILENO, TCSETA, &ctl);
#else
! tcsetattr(STDIN_FILENO, TCSANOW, &ctl);
#endif
//
***************
*** 179,185 ****
#ifdef HAVE_TERMIO_H
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
#else
! ioctl(STDIN_FILENO, TCSETS, &TerminalSettings);
#endif
return status;
--- 179,185 ----
#ifdef HAVE_TERMIO_H
ioctl(STDIN_FILENO, TCSETA, &TerminalSettings);
#else
! tcsetattr(STDIN_FILENO, TCSANOW, &TerminalSettings);
#endif
return status;