Date: Thu, 31 Aug 2000 12:34:44 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: Bruce Evans <bde@zeta.org.au> Cc: Poul-Henning Kamp <phk@critter.freebsd.dk>, current@freebsd.org, obrien@freebsd.org Subject: Re: recent change to conf.h breaks xosview port Message-ID: <3445.967718084@axl.fw.uunet.co.za> In-Reply-To: Your message of "Thu, 31 Aug 2000 15:36:59 %2B1100." <Pine.BSF.4.21.0008311531560.16138-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Aug 2000 15:36:59 +1100, Bruce Evans wrote: > Programs like fstat and lsof probably have a legitimate need for some > things in <sys/conf.h>. This is a bug in <sys/conf.h>. For now, a harmless work-around for most of these applications seems to be to include <sys/time.h>. The odds of namespace collisions are slim. For the particular case that raised this issue, namely xosview, a patch is supplied for the port maintainer, for addition to the port's ./patches/ directory. Ciao, Sheldon. --- bsd/swapinternal.cc.orig Wed Aug 30 19:12:38 2000 +++ bsd/swapinternal.cc Wed Aug 30 19:12:53 2000 @@ -64,6 +64,7 @@ // code has been removed. BCG FIXME SOMEDAY #include <sys/param.h> /* For things in sys/conf.h. */ +#include <sys/time.h> #include <sys/conf.h> /* For struct swdevt. */ #ifdef XOSVIEW_FREEBSD # ifndef USE_KVM_GETSWAPINFO To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3445.967718084>