From xemacs-m  Thu Apr  3 10:58:01 1997
Received: from fsd1.fsdirect.com (fsd1.fsdirect.com [207.107.242.74])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA22804
	for <xemacs-beta@xemacs.org>; Thu, 3 Apr 1997 10:58:00 -0600 (CST)
Received: from fsd2.fsdirect.com (fsd2.fsdirect.com [207.107.242.67]) by fsd1.fsdirect.com (8.7.5/8.7.3) with SMTP id LAA04528; Thu, 3 Apr 1997 11:56:27 -0500 (EST)
Date: Thu, 3 Apr 1997 11:58:12 -0500 (EST)
From: Julian Yip <julian@fsdirect.com>
Reply-To: Julian Yip <julian@fsdirect.com>
Subject: Re: load-average again
To: Anders Stenman <stenman@isy.liu.se>
Cc: xemacs-beta@xemacs.org
In-Reply-To: "Your message with ID" <199704031504.RAA12191@ludde.isy.liu.se>
Message-ID: <Roam.SIMC.2.0.6.860086692.22989.julian@fsdirect.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> The NEWS file for 19.15 says:
> 
> -- (load-average) works on Solaris, even if you're not root. Thanks to
>    Hrvoje Niksic.
> 
> Unfortunately, it doesn't work on Solaris for me (I have compiled and
> installed it from scratch myself, but I'm _not_ root).
> 
> Is it possible to fix it? What do I have to do? 
> 
> /Anders
> 

If you really want to make the (load-average) works on Solaris (like me ;)),
you can get the getloadavg.c from XEmacs 20.1b10 and put it in XEmacs 19.15
src directory. After that just define XEMACS, HAVE_KSTAT_H and HAVE_LIBKSTAT
in src/config.h and put -lkstat in the src/Makefile. Finally, compile it again.
This should give you a working (load-average) :).

								Julian

