From owner-freebsd-ports Wed Mar 20 08:05:57 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA11416 for ports-outgoing; Wed, 20 Mar 1996 08:05:57 -0800 (PST) Received: from news1.gtn.com (news1.gtn.com [192.109.159.3]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA11395 for ; Wed, 20 Mar 1996 08:05:28 -0800 (PST) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) id QAA06087; Wed, 20 Mar 1996 16:45:24 +0100 (MET) Received: (from andreas@localhost) by knobel.gun.de (8.7.5/8.7.3) id QAA17121; Wed, 20 Mar 1996 16:47:41 +0100 (MET) From: Andreas Klemm Message-Id: <199603201547.QAA17121@knobel.gun.de> Subject: xperfmon doesn't compile on FreeBSD-current (incl. PATCH) To: Lars_Koeller@odie.physik2.uni-rostock.de Date: Wed, 20 Mar 1996 16:47:41 +0100 (MET) Cc: ports@freebsd.org X-Mailer: ELM [version 2.4ME+ PL13 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi ! In /usr/include/sys/sysctl.h happend a name change of a definition, which causes xperfmon compilation to fail, because CTL_FS can't be resolveed anymore. In -current the definition is now called CTL_VFS. ^ Here a patch for this. I hope you agree with my change, that tries to fix this without breaking things for -stable users. Andreas /// patches/patch-ad --- bsd_system.c.orig Wed Mar 20 16:33:36 1996 +++ bsd_system.c Wed Mar 20 16:37:47 1996 @@ -88,6 +88,7 @@ */ # if __FreeBSD_version > 199511 || __FreeBSD_version == 199508 # define HAS_NFS_V3 +# define HAS_CTL_VFS # endif /* FreeBSD_version */ #endif /* FreeBSD */ @@ -313,7 +314,11 @@ */ size = sizeof(nfsstats); +#ifdef HAS_CTL_VFS + mib[0] = CTL_VFS; +#else mib[0] = CTL_FS; +#endif mib[1] = MOUNT_NFS; mib[2] = NFS_NFSSTATS; -- andreas@knobel.gun.de /\/\___ Wiechers & Partner Datentechnik GmbH Andreas Klemm ___/\/\/ $$ Support Unix - aklemm@wup.de $$ pgp p-key http://www-swiss.ai.mit.edu/~bal/pks-toplev.html >>> powered by <<< ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz >>> FreeBSD <<< "Ich bleibe bei der Aussage und trotze den Flames. :-)" Ulli Horlacher 02/96