*BSD News Article 25256


Return to BSD News archive

Newsgroups: comp.os.386bsd.apps
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!boulder!cnsnews!rintintin.Colorado.EDU!galbrait
From: galbrait@rintintin.Colorado.EDU (GALBRAITH JOHN)
Subject: ispell 4.0
Message-ID: <CIFA42.2HB@cnsnews.Colorado.EDU>
Sender: usenet@cnsnews.Colorado.EDU (Net News Administrator)
Nntp-Posting-Host: rintintin.colorado.edu
Organization: University of Colorado, Boulder
Date: Wed, 22 Dec 1993 06:02:26 GMT
Lines: 50

Somebody asked about ispell a few days ago.  I have kludged it into action.
To me, all this termio/termios/sgtty stuff is black magic for the most part,
but this fix is reasonable elegant I suppose.

Get ispell-4.0.tar off prep.ai.mit.edu
run the "configure" script
edit the file "term.c"
find the line (around line 27) that says :

/* Assume BSD if all else fails */
#include <termio.h>

and change the include file from "termio.h" to "termios.h".  As in
#include <termios.h>

after that , add the following

#include <sys/ioctl.h>
#define TCSETA TIOCSETA
#define TCGETA TIOCGETA

so, the whole section should look like this:

#if defined (HAVE_TERMIO_H)
#include <termio.h>
#else
/* Assume BSD if all else fails */
#include <termios.h>
#include <sys/ioctl.h>
#define TCSETA TIOCSETA
#define TCGETA TIOCGETA
#endif /* not HAVE_TERMIO_H */

one more change.  Search forward untill you find the line that says:

#if defined (HAVE_TERMIO_H) || define (HAVE_TERMIOS_H)
struct termio termio, otermio;

and change it to:

#if defined (HAVE_TERMIO_H) || define (HAVE_TERMIOS_H)
struct termios termio, otermio;


and then the program will compile.

Oh, I am using FreeBSD 1.02.


John.