Article View: gnu.chess
Article #27FIONREAD value ?
From: Lachlan Brown
Date: Thu, 06 Aug 1992 06:03
Date: Thu, 06 Aug 1992 06:03
46 lines
1886 bytes
1886 bytes
I'm trying to compile gnuchess4 on a sun sparcstation OS4.1.1
using gcc 2.00. As the README says:
"There is a problem with the gcc 2.00 pre processor and FIONREAD
will not compile properly on gcc 2.00. If you get an error
message you may need to substitute a value for FIONREAD in
ElapsedTime."
What value should I use for FIONREAD?
"The correct line for a SunsparcOS4 is included
as a comment. cpp on 2.00 does not substitute in quotes,
sunOS cc and gcc 1.40 handle this correctly."
Mabye I'm looking at the wrong file, I couldn't find such a comment.
**from dspcom.c**
#ifdef FIONREAD
if (i = ioctl ((int) 0,FIONREAD, &nchar))
{
printf ("ioctl failure is this gcc 2.00? See README %d %d\n", i, errno);
perror ("FIONREAD");
exit (1);
}
if (nchar)
{
if (!flag.timeout)
flag.musttimeout = true;
flag.bothsides = false;
}
#endif /*FIONREAD*/
Any suggestions?
Thanks in advance.
----------------------------------------------------------------------------
Lachlan Brown | AARNET: L.Brown@itc.gu.edu.au
Assistant Systems Engineer | PHONE: +61 7 8755090 (direct)
ITS, Griffith University Q 4111 | FAX: +61 7 8757877
I Found this .sig in a bicycle shop near Cairo.
----------------------------------------------------------------------------
Technical Details
Message-ID:
<lachlan.713080999@kraken>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!kraken!lachlanShow Full Headers
Complete Article Headers
Newsgroups: gnu.chess Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!kraken!lachlan From: lachlan@kraken.itc.gu.edu.au (Lachlan Brown) Subject: FIONREAD value ? Message-ID: <lachlan.713080999@kraken> Summary: chess Keywords: chess Sender: news@griffin.itc.gu.edu.au Nntp-Posting-Host: kraken.itc.gu.edu.au Organization: ITC, Griffith University, Brisbane, Australia Date: 6 Aug 92 06:03:19 GMT Lines: 46