Xref: utzoo comp.windows.x:25017 comp.unix.ultrix:4098 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!dali.cs.montana.edu!milton!cwheeler From: cwheeler@milton.u.washington.edu (Christopher Wheeler) Newsgroups: comp.windows.x,comp.unix.ultrix Subject: Problem compiling the X11R4 distribution with Ultrix-4.0 Message-ID: <5631@milton.u.washington.edu> Date: 27 Jul 90 19:24:57 GMT Distribution: usa Organization: University of Washington, Seattle Lines: 21 Does this look evil to you?: fileno(stderr) = i; It does to me! I was compiling xterm under Ultrix 4.0 and the compiler barfed all over this assignment. Since fileno is a macro it expanded to this: ((int) (&_iob[2])->_file) = i; It seems the compiler didn't like the type cast. Well I replaced the macro with its expansion minus the type cast and all was fine. It seems that they are trying to direct stderr out to a specified file. But I don't understand why they didn't just use dup instead of this evil looking assignment? ------------------------------------------------------------------------------- Christopher D. Wheeler Networks and Distributed Computing INTERNET: cwheeler@nwnet.net University of Washington : cwheeler@cac.washington.edu 3737 Brooklyn Ave. NE BELL: (206) 543-5128 Seattle, WA 98105