DGUX
eunice UNIX emulator under VMS.
hpux
+ MSDOS No-op for MSDOS.
NeXT
sgi
sequent Sequent Dynix 3.x.x (BSD)
UMAX
UMAX4_3
VMS
+ WIN32 No-op for Windows95/NT.
__linux__ Linux: assumes /proc filesystem mounted.
Support from Michael K. Johnson.
__NetBSD__ NetBSD: assumes /kern filesystem mounted.
: (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale));
#endif /* OSF_MIPS */
-#if !defined (LDAV_DONE) && defined(MSDOS)
+#if !defined (LDAV_DONE) && (defined (MSDOS) || defined (WIN32))
#define LDAV_DONE
/* A faithful emulation is going to have to be saved for a rainy day. */
- for ( ; elem < nelem; elem++)
+ for ( ; elem < nelem; elem++)
{
loadavg[elem] = 0.0;
}
/* We pass 0 for the kernel, corefile, and swapfile names
to use the currently running kernel. */
kd = kvm_open (0, 0, 0, O_RDONLY, 0);
- if (kd != 0)
+ if (kd != 0)
{
/* nlist the currently running kernel. */
kvm_nlist (kd, nl);