Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!sun-barr!newstop!texsun!letni!mic!ernest!lae From: lae@ernest.ti.com (Alan Edmonds) Newsgroups: comp.sources.d Subject: Re: Ephem - CBREAK, etc. under System V.3?? Keywords: answers Message-ID: <1371@ernest.ti.com> Date: 19 Mar 90 00:29:12 GMT References: <1081@telesci.UUCP> Organization: Texas Instruments, Inc. Plano TX Lines: 47 In article <1081@telesci.UUCP> jpoplaws@telesci.UUCP (Joseph E Poplawski) writes: I was trying to compile Ephem4.12 that was just posted to the net, and while compiling, I received a couple of errors that I do not know how to rectify. A script is included below by signature below. My system is an 80386 running ISC (1.0.5) UNIX Sys V.3. Any answers would be greatly appreciated. Thanks in advance. -Jo Joseph E Poplawski (Jo) Home: 5 Sussex Drive, Willingboro, NJ 08046-1407 Phone: +1 609 835-2846 UUCP: ...{rutgers!rochester!moscom,princeton,pyrnj}!telesci!fantasci!jep Script started Thu Mar 15 22:57:54 1990 $ make cc -O -c io.c "io.c", line 86: FIONREAD undefined "io.c", line 230: CBREAK undefined *** Error code 1 Stop. Script done Thu Mar 15 23:00:29 1990 You need to do two things. At the begining of io.c uncomment the #define USE_NDELAY. (in other words, define USE_NDELAY). THis will get rid of the FIONREAD problem. Number two is change the line referencing CBREAK to reference RAW. (see below) /* sg.sg_flags |= CBREAK; /* wake up on each char but can still kill */ sg.sg_flags |= RAW; /* wake up on each char but can still kill */ This should do it. At least it did on my system - Sys V R3.0. Good luck and your welcome.