mirror of
https://github.com/mirror/make.git
synced 2025-01-30 06:11:02 +08:00
(getloadavg) [MSDOS]: Return 0 load instead of failing the call.
This commit is contained in:
parent
17aef36902
commit
21fed1fbcc
10
getloadavg.c
10
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user