Subject: xload diffs.
To: None <amiga-x@sun-lamp.cs.berkeley.edu>
From: None <chopps@emunix.emich.edu>
List: amiga-x
Date: 08/13/1994 15:33:31
Here is what I think is a better diff to xload for NetBSD.
(I pasted from x so watchout for spaces where tabs should be)

Chris.

*** get_load.c.orig     Thu Jul 25 14:21:17 1991
--- get_load.c  Sat Aug 13 15:07:01 1994
***************
*** 121,126 ****
--- 121,141 ----
  
  static xload_error();
  
+ #ifdef __NetBSD__
+ #include <sys/param.h>
+ #include <stdlib.h>
+ 
+ void InitLoadPoint() {}
+ 
+ /* ARGSUSED */
+ void GetLoadPoint( w, closure, call_data )
+      Widget   w;              /* unused */
+      caddr_t  closure;        /* unused */
+      caddr_t  call_data;      /* pointer to (double) return value */
+ {
+       getloadavg((double *)call_data, 1);
+ }
+ #else /* not __NetBSD__ */
  
  #ifdef apollo
  #include <apollo/base.h>
***************
*** 719,724 ****
      (void) fprintf(stderr,"xload: %s %s\n", str1, str2);
      exit(-1);
  }
! 
  #endif /* apollo else */
  
--- 734,739 ----
      (void) fprintf(stderr,"xload: %s %s\n", str1, str2);
      exit(-1);
  }
! #endif /* __NetBSD__ else */
  #endif /* apollo else */






------------------------------------------------------------------------------