home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!world!jrs
- From: jrs@world.std.com (Rick Sladkey)
- Subject: patch for C-Kermit-5A(186)
- Message-ID: <JRS.92Nov21160203@lepton.world.std.com>
- Sender: jrs@world.std.com (Rick Sladkey)
- Organization: The Internet
- Date: Sat, 21 Nov 1992 21:02:03 GMT
- Lines: 80
-
- Here is a patch for C-Kermit-5A(186) that fixes three things with
- an "out of the box" compile.
-
- * usleep is used so dialing delays work properly
- * TCP/IP is compiled in because it works fine
- * RTS/CTS flow control works
-
- A patch to cku186.tar.Z follows.
- -----
- diff -rc orig/cku186/ckutio.c cku186/ckutio.c
- *** orig/cku186/ckutio.c Tue Nov 3 12:48:06 1992
- --- cku186/ckutio.c Fri Nov 20 20:57:19 1992
- ***************
- *** 3023,3038 ****
-
- #else /* It is ATTSV or POSIX */
-
- if (flow == FLO_RTSC || /* Hardware flow control */
- flow == FLO_DTRC ||
- ! flow == FLO_DTRT)
- tthflow(flow);
- ! else if (flow == FLO_XONX) /* Software flow control */
- tttvt.c_iflag |= (IXON|IXOFF); /* On if requested. */
- else if (flow == FLO_KEEP) {
- tttvt.c_iflag &= ~(IXON|IXOFF); /* Turn off Xon/Xoff flags */
- tttvt.c_iflag |= (ttold.c_iflag & (IXON|IXOFF)); /* OR in old ones */
- /* NOTE: We should also handle hardware flow control here! */
- } else if (flow == FLO_NONE) /* Off if NONE or hardware */
- tttvt.c_iflag &= ~(IXON|IXOFF); /* requested. */
-
- --- 3023,3047 ----
-
- #else /* It is ATTSV or POSIX */
-
- + #ifdef CRTSCTS
- + tttvt.c_cflag &= ~CRTSCTS; /* Turn off CRTSCTS flag */
- + #endif
- if (flow == FLO_RTSC || /* Hardware flow control */
- flow == FLO_DTRC ||
- ! flow == FLO_DTRT) {
- ! #ifdef CRTSCTS
- ! tttvt.c_cflag |= CRTSCTS; /* Turn on CRTSCTS flag */
- ! #endif
- tthflow(flow);
- ! } else if (flow == FLO_XONX) /* Software flow control */
- tttvt.c_iflag |= (IXON|IXOFF); /* On if requested. */
- else if (flow == FLO_KEEP) {
- tttvt.c_iflag &= ~(IXON|IXOFF); /* Turn off Xon/Xoff flags */
- tttvt.c_iflag |= (ttold.c_iflag & (IXON|IXOFF)); /* OR in old ones */
- /* NOTE: We should also handle hardware flow control here! */
- + #ifdef CRTSCTS
- + tttvt.c_cflag |= (ttold.c_cflag & CRTSCTS); /* OR in old ones */
- + #endif
- } else if (flow == FLO_NONE) /* Off if NONE or hardware */
- tttvt.c_iflag &= ~(IXON|IXOFF); /* requested. */
-
- diff -rc orig/cku186/makefile cku186/makefile
- *** orig/cku186/makefile Mon Nov 9 03:08:47 1992
- --- cku186/makefile Fri Nov 20 18:40:27 1992
- ***************
- *** 1705,1711 ****
- linuxgcc2:
- @echo 'Making C-Kermit Linux with gcc2.1'
- $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC \
- ! $(KFLAGS)" "CC2 = gcc" "LDFLAGS = -ltermcap "
-
- #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
- #The -O flag may fail on some modules (like ckuus2.c), in which case you
- --- 1705,1712 ----
- linuxgcc2:
- @echo 'Making C-Kermit Linux with gcc2.1'
- $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC \
- ! -DUSLEEP -DCK_RTSCTS -DTCPSOCKET $(KFLAGS)" \
- ! "CC2 = gcc" "LDFLAGS = -ltermcap "
-
- #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
- #The -O flag may fail on some modules (like ckuus2.c), in which case you
- --
- Rick Sladkey
- jrs@world.std.com
-