Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!library.ucla.edu!europa.eng.gtefsd.com!uunet!noc.near.net!news.Brown.EDU!brunix!cs.brown.edu!Mark_Weaver From: Mark_Weaver@brown.edu Subject: Re: xload In-Reply-To: jdlacour@dlsunf.dal.mobil.com's message of 12 Oct 1993 14:40:48 GMT Message-ID: <MARK_WEAVER.93Oct12223009@excelsior.cis.brown.edu> Sender: news@cs.brown.edu Organization: Brown University Department of Computer Science References: <29eflg$rlc@dlsn31> Date: Wed, 13 Oct 1993 02:30:09 GMT Lines: 46 In article <29eflg$rlc@dlsn31> jdlacour@dlsunf.dal.mobil.com (J. D. La Coursiere [Jeff]) writes: > Anyone succesfully compiled xload for NetBSD? > Please e-mail response. (I'll email it too) Here's a patch to xload to make it run properly with netbsd. This was done for the upcoming XFree86 2.0 release. *** get_load.c.old Thu Sep 16 01:35:07 1993 --- get_load.c Thu Sep 16 01:48:49 1993 *************** *** 435,442 **** #ifndef KERNEL_FILE #ifdef __386BSD__ ! #define KERNEL_FILE "/386bsd" #endif /* __386BSD__ */ #ifdef alliant #define KERNEL_FILE "/vmunix" --- 436,452 ---- #ifndef KERNEL_FILE #ifdef __386BSD__ ! # ifdef __bsdi__ ! # define KERNEL_FILE "/bsd" ! # else ! # define KERNEL_FILE "/386bsd" ! # endif #endif /* __386BSD__ */ + + #ifdef __NetBSD__ + # undef KERNEL_FILE + # define KERNEL_FILE "/netbsd" + #endif #ifdef alliant #define KERNEL_FILE "/vmunix" Mark -- -------------------------------------------------------------------- Email: Mark_Weaver@brown.edu | Brown University PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science