diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-12-28 23:28:35 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-12-28 23:28:35 +0000 |
commit | 22901567fcac5d60564d2522afdb9d9cfbb51593 (patch) | |
tree | ec1a0cb0c686c79bad337ccc9b15f1d1649c05fd /src | |
parent | 7a44cbc03562b2ff4607b51d76c424ccb55be67d (diff) | |
download | emacs-22901567fcac5d60564d2522afdb9d9cfbb51593.tar.gz |
(getloadavg) [MSDOS]: Return 0 load instead of failing the call.
Diffstat (limited to 'src')
-rw-r--r-- | src/getloadavg.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c index 7f939d2dbe4..3076012c6d5 100644 --- a/src/getloadavg.c +++ b/src/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 |