Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site sdcrdcf.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!zehntel!hplabs!sdcrdcf!lwall
From: lwall@sdcrdcf.UUCP (Larry Wall)
Newsgroups: net.news.b
Subject: rn on System V--circular dependency
Message-ID: <1344@sdcrdcf.UUCP>
Date: Wed, 26-Sep-84 12:16:54 EDT
Article-I.D.: sdcrdcf.1344
Posted: Wed Sep 26 12:16:54 1984
Date-Received: Fri, 28-Sep-84 06:27:15 EDT
Reply-To: lwall@sdcrdcf.UUCP (Larry Wall)
Organization: System Development Corp. R+D, Santa Monica
Lines: 18

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