1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/net/ztelnet/files/patch-an

73 lines
1.5 KiB
Plaintext
Raw Normal View History

diff -uNr ../ztelnet/telnet/sys_bsd.c ./telnet/sys_bsd.c
--- ../ztelnet/telnet/sys_bsd.c Tue Sep 19 23:35:50 1995
+++ ./telnet/sys_bsd.c Wed Dec 3 02:35:18 1997
@@ -43,13 +43,16 @@
#include "externs.h"
#include "types.h"
-/* PMS: BYPMS is added */
-#if defined(CRAY) || (defined(USE_TERMIO) && !defined(SYSV_TERMIO)) || defined(BYPMS)
+#if defined(CRAY) || (defined(USE_TERMIO) && !defined(SYSV_TERMIO))
#define SIG_FUNC_RET void
#else
#define SIG_FUNC_RET int
#endif
+#ifdef SIGINFO
+extern SIG_FUNC_RET ayt_status();
+#endif
+
int
tout, /* Output file descriptor */
tin, /* Input file descriptor */
@@ -65,16 +68,9 @@
# define old_tc ottyb
#else /* USE_TERMIO */
-
-#ifdef BYPMS
-struct termios old_tc = { 0 };
-extern struct termios new_tc;
-#else
struct termio old_tc = { 0 };
extern struct termio new_tc;
-#endif /* PMS */
-#ifndef BYPMS
# ifndef TCSANOW
# ifdef TCSETS
# define TCSANOW TCSETS
@@ -100,7 +96,6 @@
# endif
# endif /* TCSANOW */
#endif /* USE_TERMIO */
-#endif /* PMS */
static fd_set ibits, obits, xbits;
@@ -166,11 +161,11 @@
* 1 Do add this character
*/
+void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
int
TerminalSpecialChars(c)
int c;
{
- void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
if (c == termIntChar) {
intp();
@@ -382,11 +377,7 @@
struct sgttyb sb;
int lmode;
#else /* USE_TERMIO */
-#ifdef BYPMS
- struct termios tmp_tc;
-#else
struct termio tmp_tc;
-#endif /* PMS */
#endif /* USE_TERMIO */
int onoff;
int old;