summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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