Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 1996 16:47:41 +0100 (MET)
From:      Andreas Klemm <andreas@knobel.gun.de>
To:        Lars_Koeller@odie.physik2.uni-rostock.de
Cc:        ports@freebsd.org
Subject:   xperfmon doesn't compile on FreeBSD-current (incl. PATCH)
Message-ID:  <199603201547.QAA17121@knobel.gun.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603201547.QAA17121>