summaryrefslogtreecommitdiff
path: root/getloadavg.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-12-28 23:28:35 +0000
committerRichard M. Stallman <rms@gnu.org>1995-12-28 23:28:35 +0000
commit21fed1fbcc1f87321dd59b86ea6959fcc6671933 (patch)
treea35642a12c0c00fb6eca8673375203fc0e5072e6 /getloadavg.c
parent17aef3690232864a32412b7795244c66a6dc754d (diff)
downloadgunmake-21fed1fbcc1f87321dd59b86ea6959fcc6671933.tar.gz
(getloadavg) [MSDOS]: Return 0 load instead of failing the call.
Diffstat (limited to 'getloadavg.c')
-rw-r--r--getloadavg.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/getloadavg.c b/getloadavg.c
index 7f939d2..3076012 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -732,6 +732,16 @@ getloadavg (loadavg, nelem)
: (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale));
#endif /* OSF_MIPS */
+#if !defined (LDAV_DONE) && defined(MSDOS)
+#define LDAV_DONE
+
+ /* A faithful emulation is going to have to be saved for a rainy day. */
+ for ( ; elem < nelem; elem++)
+ {
+ loadavg[elem] = 0.0;
+ }
+#endif /* MSDOS */
+
#if !defined (LDAV_DONE) && defined (OSF_ALPHA)
#define LDAV_DONE