diff options
-rw-r--r-- | getloadavg.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/getloadavg.c b/getloadavg.c index 2d795db..3e4a1d4 100644 --- a/getloadavg.c +++ b/getloadavg.c @@ -197,6 +197,14 @@ #endif /* No LOAD_AVE_TYPE. */ +#ifdef OSF_ALPHA +/* <sys/param.h> defines an incorrect value for FSCALE on Alpha OSF/1, + according to ghazi@noc.rutgers.edu. */ +#undef FSCALE +#define FSCALE 1024.0 +#endif + + #ifndef FSCALE /* SunOS and some others define FSCALE in sys/param.h. */ |