diff options
author | Roland McGrath <roland@gnu.org> | 1996-05-22 21:47:37 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-05-22 21:47:37 +0000 |
commit | 26ff97e7d120038ca103902f3e9143e6f5675e61 (patch) | |
tree | a1cafef8f8fcbe141ab43f5db2bf65a5eb8ce43c /src/getloadavg.c | |
parent | 891560d60e616def451dbf39cf8f19fa04e3bdc8 (diff) | |
download | emacs-26ff97e7d120038ca103902f3e9143e6f5675e61.tar.gz |
[WIN32]: No-op as for [MSDOS].
Diffstat (limited to 'src/getloadavg.c')
-rw-r--r-- | src/getloadavg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c index 598c505d1af..1fe78bd95ff 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c @@ -43,6 +43,7 @@ DGUX eunice UNIX emulator under VMS. hpux + MSDOS No-op for MSDOS. NeXT sgi sequent Sequent Dynix 3.x.x (BSD) @@ -51,6 +52,7 @@ 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. @@ -733,11 +735,11 @@ getloadavg (loadavg, nelem) : (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; } @@ -866,7 +868,7 @@ getloadavg (loadavg, nelem) /* 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); |