Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!ngo%tammy From: ngo%tammy@HARVARD.HARVARD.EDU (Tom Ngo) Newsgroups: gnu.emacs.bug Subject: Emacs 18.53 on Convex C1 - quick fix Message-ID: <8903170906.AA02358@prep.ai.mit.edu> Date: 17 Mar 89 07:37:00 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 64 COMPILATION ERROR: In Convex Unix 7.0 (the latest release), the include file contains a nonstandard construct: struct nlist { union { char *n_name; /* for use when in core */ long n_strx; /* index into string table */ } n_un; /* union for name and string index */ ..etc... Consequently, the routine load-average in fns.c must be altered. --Tom Ngo e-mail: ngo@endor.harvard.edu US mail: 12 Oxford Street Box 201 Cambridge, MA 02138 Phones: (617) 495-1768 (office) ============================================================================ *** fns.c-old Fri Mar 17 01:46:49 1989 --- fns.c Fri Mar 17 01:44:52 1989 *************** *** 1197,1202 strcpy (nl[0].n_name, LDAV_SYMBOL); nl[1].n_zeroes = 0; #else /* NLIST_STRUCT */ nl[0].n_name = LDAV_SYMBOL; nl[1].n_name = 0; #endif /* NLIST_STRUCT */ --- 1197,1206 ----- strcpy (nl[0].n_name, LDAV_SYMBOL); nl[1].n_zeroes = 0; #else /* NLIST_STRUCT */ + #ifdef convex + nl[0].n_un.n_name = LDAV_SYMBOL; + nl[1].n_un.n_name = 0; + #else /* convex */ nl[0].n_name = LDAV_SYMBOL; nl[1].n_name = 0; #endif /* convex */ *************** *** 1199,1204 #else /* NLIST_STRUCT */ nl[0].n_name = LDAV_SYMBOL; nl[1].n_name = 0; #endif /* NLIST_STRUCT */ nlist (KERNEL_FILE, nl); --- 1203,1209 ----- #else /* convex */ nl[0].n_name = LDAV_SYMBOL; nl[1].n_name = 0; + #endif /* convex */ #endif /* NLIST_STRUCT */ nlist (KERNEL_FILE, nl); ============================================================================