ngo%tammy@HARVARD.HARVARD.EDU (Tom Ngo) (03/17/89)
COMPILATION ERROR: In Convex Unix 7.0 (the latest release), the
include file <nlist.h> 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);
============================================================================