*BSD News Article 98823


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!uunet!in2.uu.net!134.222.90.2!EU.net!blackbush.xlink.net!news-ge.switch.ch!news-zh.switch.ch!ubnnews.unisource.ch!newssrv.ita.tip.net!i2unix!news1.mclink.it!usenet
From: Danilo Paliani <afn23397@afn.org>
Newsgroups: comp.emulators.ms-windows.wine,comp.unix.bsd.freebsd.misc
Subject: Re: Wine970616 make problem under FreeBSD 2.2.1
Date: Sun, 29 Jun 1997 00:29:56 +0430
Organization: MC-link The World On Line
Lines: 43
Message-ID: <33B56D3C.16C6@afn.org>
References: <cjqjo5.idh.ln@dolphin.neosoft.com> <5ok4vj$6qr$1@dismay.ucs.indiana.edu> <5omcrt$l7r@rznews.rrze.uni-erlangen.de> <ktdro5.o81.ln@dolphin.neosoft.com> <5oufis$ij0@rznews.rrze.uni-erlangen.de> <cn2zpsdf0oq.fsf@demokrit.fm.unit.no>
NNTP-Posting-Host: pgw-017.mclink.it
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: Mozilla 3.0 (WinNT; I)
Xref: euryale.cc.adfa.oz.au comp.emulators.ms-windows.wine:8485 comp.unix.bsd.freebsd.misc:43802

Steinar Hamre wrote:
> 
> msmeissn@cip.informatik.uni-erlangen.de (Marcus Meißner) writes:
> 
> > In article <ktdro5.o81.ln@dolphin.neosoft.com>,
> > Conrad Sabatier <conrads@neosoft.com> wrote:
> > >In article <5omcrt$l7r@rznews.rrze.uni-erlangen.de>,
> > >Marcus Meißner <msmeissn@cip.informatik.uni-erlangen.de> wrote:
> > >>In article <5ok4vj$6qr$1@dismay.ucs.indiana.edu>,
> > >>John Fieber <jfieber@indiana.edu> wrote:
> > >>>In article <cjqjo5.idh.ln@dolphin.neosoft.com>,
> > >>>   conrads@neosoft.com (Conrad Sabatier) writes:
> > >>>
> > >>>> ./comm.c:801: `TIOCINQ' undeclared (first use this function)
> > >>>> *** Error code 1

> > TIOCINQ (after the linux kernel sources) return the number of characters
> > readable on the specified filedescriptor (belonging to a terminal or a
> > network connection).
> >
> > Probably that BSD has an equivalent for it, which we can use.

 
> On a linuxbox:
> /usr/include/asm/ioctls.h:#define TIOCINQ               FIONREAD
> 
> I looks like bouth most BSD and SYSV-variants has FIONREAD defined. So
> that might be a better choice...
> 
>         Steinar


Right look from Steinar  , just go in /usr/lib/sys and in ioctl.h add :

#define TIOCINQ               FIONREAD

after the two line in which is #include fiflo.h (or somethingh sound
like this) .

After that the "./comm.c:801: `TIOCINQ' undeclared " are skipped but i
have a new error after ;((

Maybe one day   .....