From b764749dc7ba4198709de1e40b66ebda8af8e75b Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 4 Jul 2004 23:28:32 +0000 Subject: Add echolinux, an EchoLink client for UNIX. PR: ports/68587 Submitted by: Diane Bruce --- comms/echolinux/files/patch-echolinux_echolinux.h | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 comms/echolinux/files/patch-echolinux_echolinux.h (limited to 'comms/echolinux/files/patch-echolinux_echolinux.h') diff --git a/comms/echolinux/files/patch-echolinux_echolinux.h b/comms/echolinux/files/patch-echolinux_echolinux.h new file mode 100644 index 000000000000..5e90f9f61795 --- /dev/null +++ b/comms/echolinux/files/patch-echolinux_echolinux.h @@ -0,0 +1,30 @@ +--- echolinux/echolinux.h.orig Sun Dec 22 04:11:34 2002 ++++ echolinux/echolinux.h Mon Jul 5 00:16:32 2004 +@@ -11,22 +11,17 @@ + #define PORT_BASE 5198 + + +-struct termio term_params, old_term_params; ++struct termios term_params, old_term_params; + + void raw_tty(int flag){ + + if(flag){ +- ioctl(fileno(stdin), TCGETA, &old_term_params); ++ tcgetattr(fileno(stdin), &old_term_params); + term_params = old_term_params; +- term_params.c_iflag &= ~(ICRNL|IXON|IXOFF); /* no cr translation */ +- term_params.c_iflag &= ~(ISTRIP); /* no stripping of high order bit */ +- term_params.c_oflag &= ~(OPOST); /* no output processing */ +- term_params.c_lflag &= ~(ISIG|ICANON|ECHO); /* raw mode */ +- term_params.c_cc[VMIN] = 0; /* satisfy read after 1 char */ +- term_params.c_cc[VTIME] = 0; /* satisfy read after 1 char */ +- ioctl(fileno(stdin), TCSETAF, &term_params); ++ cfmakeraw(&term_params); ++ tcsetattr(fileno(stdin), TCSAFLUSH, &term_params); + } else{ +- ioctl(fileno(stdin), TCSETAF, &old_term_params); ++ tcsetattr(fileno(stdin), TCSAFLUSH, &old_term_params); + } + } + -- cgit v1.2.3