[net.news.b] rn on System V--circular dependency

lwall@sdcrdcf.UUCP (Larry Wall) (09/26/84)

Rn bug #3:

There is a minor problem with compiling rn on a stock System V system, in
that:

1) fcntl.h isn't included unless PENDING is defined, and
2) PENDING isn't defined unless fcntl.h is included.

This problem will manifest itself with the message that TIOCSETP is not
defined in term.c.  Apparently the System V I tried it on happened to have
TIOCSETP defined!

The fix is trivial.  If you have fcntl.h, include it near the beginning
of common.h, before O_NDELAY is referenced.  In the future I shall likely
have Configure determine whether fcntl.h should be included.

Larry Wall
{allegra,burdvax,cbosgd,hplabs,ihnp4,sdcsvax}!sdcrdcf!lwall