mtr@mentor.cc.purdue.edu (Miek Rowan) (09/28/88)
Someone probably already did this (since it was so easy) but
here are the diffs to make xload work (X11R2) ... The patch
is in $TOP/lib/Xaw/Load.c. It works here. If you have problems
send me a note.
mtr
-------cut me-------
*** /usr/src/local/X11/lib/Xaw/Load.orig.c Wed Sep 28 10:36:10 1988
--- /usr/src/local/X11/lib/Xaw/Load.c Wed Sep 28 10:32:25 1988
***************
*** 1,5 ****
#ifndef lint
! static char rcsid[] = "$Header: /usr/src/local/X11/lib/Xaw/RCS/Load.c,v 1.1 88/09/26 21:27:10 mtr Exp Locker: mtr $";
#endif
/***********************************************************
--- 1,5 ----
#ifndef lint
! static char rcsid[] = "$Header: Load.c,v 1.25 88/02/26 12:13:09 swick Exp $";
#endif
/***********************************************************
***************
*** 40,45 ****
--- 40,48 ----
#ifdef sun
#include <sys/param.h>
#endif
+ #ifdef sequent
+ #include <sys/vm.h>
+ #endif /* sequent */
#include <X11/LoadP.h>
extern long lseek();
***************
*** 361,370 ****
#ifndef KERNEL_FILE
#ifdef hpux
#define KERNEL_FILE "/hp-ux"
! #else
#define KERNEL_FILE "/vmunix"
! #endif
! #endif
static struct nlist namelist[] = { /* namelist for vmunix grubbing */
#define LOADAV 0
--- 364,378 ----
#ifndef KERNEL_FILE
#ifdef hpux
#define KERNEL_FILE "/hp-ux"
! #endif hpux
! #ifdef sequent
! #define KERNEL_FILE "/dynix"
! #endif sequent
! #endif KERNEL_FILE
!
! #ifndef KERNEL_FILE
#define KERNEL_FILE "/vmunix"
! #endif KERNEL_FILE
static struct nlist namelist[] = { /* namelist for vmunix grubbing */
#define LOADAV 0
***************
*** 399,405 ****
(void) lseek(kmem, loadavg_seek, 0);
! #ifdef sun
{
long temp;
(void) read(kmem, (char *)&temp, sizeof(long));
--- 407,413 ----
(void) lseek(kmem, loadavg_seek, 0);
! #if defined(sun) || defined(sequent)
{
long temp;
(void) read(kmem, (char *)&temp, sizeof(long));