*BSD News Article 98544


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!inferno.mpx.com.au!news.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.sdsmt.edu!data.ramona.vix.com!news1.digital.com!uunet!in1.uu.net!194.87.0.28!demos!newsfeed.sovam.com!sovam!news.maxwell.syr.edu!news.apfel.de!uni-erlangen.de!rznews.rrze.uni-erlangen.de!news
From: msmeissn@cip.informatik.uni-erlangen.de (Marcus =?ISO-8859-1?Q?Mei=DFner?=)
Newsgroups: comp.emulators.ms-windows.wine,comp.unix.bsd.freebsd.misc
Subject: Re: Wine970616 make problem under FreeBSD 2.2.1
Date: Thu, 26 Jun 1997 21:23:08 +0200
Organization: student at the CS department of the University of Erlangen
Lines: 35
Message-ID: <5oufis$ij0@rznews.rrze.uni-erlangen.de>
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>
NNTP-Posting-Host: msmeissn@faui01a.informatik.uni-erlangen.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Xref: euryale.cc.adfa.oz.au comp.emulators.ms-windows.wine:8436 comp.unix.bsd.freebsd.misc:43579

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
>>>> 
>>>> I can't find a definition for TIOCINQ anywhere on my system.  I do have
>>>> TIOCOUTQ.
>>>
>>>I looked for this in a bunch of different Unix systems and couldn't
>>>find it anywhere.  It must be a Linuxism....   :(
>>
>>Just add #ifdef TIOCINQ ... #endif around the affected code.
>
>Won't this break the code?

Hmm, partially. The only occurances of TIOCINQ are in GetCommError() to
return how much chars are unread, and in GetCommEventMask in the
EV_RXCHAR case. 

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.

Marcus
-- 
<URL:http://wwwcip.informatik.uni-erlangen.de/~msmeissn/>