diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-08 02:06:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-08 02:06:34 +0000 |
commit | 0e6d3d87e46c42813b293107929faaf03558552b (patch) | |
tree | 21d665caba1f2c923c07a1f4e3561c72cc517948 | |
parent | 4b08923fe8a05f33a53168772e4e17e55e514e16 (diff) | |
download | coreutils-0e6d3d87e46c42813b293107929faaf03558552b.tar.xz |
[__hpux]: Define hpux. From Eric Backus.
-rw-r--r-- | lib/getloadavg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 2411e6a92..7cc5a903e 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -133,6 +133,10 @@ extern int errno; #define hpux #endif +#if defined (__hpux) && !defined (hpux) +#define hpux +#endif + #if defined(hp300) && !defined(hpux) #define MORE_BSD #endif @@ -529,7 +533,7 @@ getloadavg (loadavg, nelem) ksp = kstat_lookup (kc, "unix", 0, "system_misc"); if (ksp == 0 ) return -1; if (kstat_read (kc, ksp, 0) == -1) return -1; - + kn = kstat_data_lookup (ksp, "avenrun_1min"); if (kn == 0) |