Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!ucbvax!tut.cis.ohio-state.edu!rutgers!bellcore!faline!thumper!ulysses!mhuxo!mhuxu!att!chinet!ignatz From: ignatz@chinet.chi.il.us (Dave Ihnat) Newsgroups: comp.mail.elm Subject: Configure glitch on Sun OS for Elm 2.2 Keywords: compiled host name, Sun OS Message-ID: <8236@chinet.chi.il.us> Date: 17 Apr 89 23:33:52 GMT Distribution: usa Organization: Chinet - Chicago, Ill. Lines: 20 Well, I've installed the new release of Elm on 4 different architectures in the last day, and it's been painless. Or, at least, very low-threshhold pain on the last one. For various reasons, I selected our Sun network to use a compiled host name. Unfortunately, this resulted in #undef of GETHOSTNAME; and in 'opt_utils.c', there's a section of the form: #ifndef GETHOSTNAME # include # include #endif Obvious assumption is that only non-BSD sites would ever want to do this. Since there *is* no /usr/include/sys/utsname.h on BSD, this dies. The fix is to simply bracket the 'utsname' include with '#ifndef BSD'/'#endif'. Otherwise, this is a clean job--thanks, folks! Dave Ihnat Analysts International Corp. ignatz@homebru.chi.il.us