From: Evmorfopoulos Dimitris (devmorfo@mtu.edu)
Date: 07/28/93


From: devmorfo@mtu.edu (Evmorfopoulos Dimitris)
Subject: Re: Missing sgtty.h and/or _bsd_ioctl errors.
Date: Wed, 28 Jul 1993 17:50:11 GMT

In article <3JwD8B1w165w@pension.provo.ut.us>, grettir@pension.provo.ut.us (Grettir Asmundarson) writes:
> So, I decided I'd like to compile Pine and Mailx.
>
> Both complained that /usr/include/sgtty.h couldn't be found. There is a
> sgtty.h in /usr/include/bsd, so I linked that one to /usr/include/
> sgtty.h. But, then they started giving me _bsd_ioctl errors.
>
> I'm assuming that I'm using a bogus version of sgtty.h, or that I
> shouldn't be using sgtty.h at all. I'm also assuming that I'm not the
> only one who's seen this, since Mailx seems to be the mailer of choice.
> But, in browsing through the backlog of news, I can't find any mention
> of it. (Nor in the FAQs.)
>
> I'm using the freshest versions of everything (gcc, includes, libc,
> etc..) from the GCC directory on sunsite.unc.edu.
>
> What is the solution? I'm beating my head against the wall.
>
> ---
> grettir@pension.provo.ut.us (Grettir Asmundarson)
> The Pension Grillparzer +1 801 375 7679

        Just use -lbsd for linking. That will do it. There is nothing wrong with your
sgetty.h. It just belongs into the usr/include/bsd directory and not in the
usr/include where you placed the link.

                                                        Dimitris