From owner-freebsd-questions Fri Apr 11 08:39:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA24822 for questions-outgoing; Fri, 11 Apr 1997 08:39:28 -0700 (PDT) Received: from serv01.net-link.net (serv01.net-link.net [205.217.6.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA24816 for ; Fri, 11 Apr 1997 08:39:25 -0700 (PDT) Received: from r2d2 (pmr2-6 [207.49.227.46]) by serv01.net-link.net (8.8.5/8.6.9) with SMTP id LAA27819 for ; Fri, 11 Apr 1997 11:39:39 -0400 Message-ID: <334F0525.66EB@net-link.net> Date: Fri, 11 Apr 1997 23:44:37 -0400 From: Matthew Hagerty Reply-To: wpub1@net-link.net Organization: Wolfe Publishing X-Mailer: Mozilla 3.01 (Win95; I) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: TERMIO/TERMIOS problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Greetings, Could someone point me to where I can learn what TERMIO and TERMIOS are all about. I am always running into header and #define problems when trying to compile programs I've downloaded. The most recent is this little piece of code from SSL-MZtelnet-0.9.1: #ifdef convex static int linestate; #endif int tty_linemode() { #ifndef convex #ifndef USE_TERMIO return(termbuf.state & TS_EXTPROC); #else return(termbuf.c_lflag & EXTPROC); #endif #else return(linestate); #endif } GCC keeps stopping with the following error: gcc -c -g -O -I../lib -I../include -I/usr/local/include -DHAVE_CONFIG_H -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DAUTHENTICATION sys_term.c sys_term.c: In function `tty_linemode': sys_term.c:799: `TS_EXTPROC' undeclared (first use this function) sys_term.c:799: (Each undeclared identifier is reported only once sys_term.c:799: for each function it appears in.) *** Error code 1 Stop. What do I need in order to be able to figure out how to fix these kinds of problems? Any insight would be greatly appreciated. Thank you, Matthew Hagerty