Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 1996 19:30:13 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        andreas@knobel.gun.de (Andreas Klemm)
Cc:        Lars_Koeller@odie.physik2.uni-rostock.de, ports@FreeBSD.ORG
Subject:   Re: xperfmon doesn't compile on FreeBSD-current (incl. PATCH)
Message-ID:  <199603201830.TAA09103@uriah.heep.sax.de>
In-Reply-To: <199603201547.QAA17121@knobel.gun.de> from "Andreas Klemm" at Mar 20, 96 04:47:41 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Andreas Klemm wrote:

>      size = sizeof(nfsstats);
> +#ifdef HAS_CTL_VFS
> +    mib[0] = CTL_VFS;
> +#else
>      mib[0] = CTL_FS;
> +#endif

I assume ``CTL_VFS'' is already a #define.  In this case, why not
simply do:

#ifndef HAS_CTL_VFS
#  define HAS_CTL_VFS HAS_CTL_FS
#endif

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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