diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-10 03:29:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-10 03:29:50 +0000 |
commit | 73a46a9c20be66b569c466b8b778a79b20b3b5f5 (patch) | |
tree | b5c98fb20f14db5d5688cab07440c26c991dd028 /src/getloadavg.c | |
parent | e31714694adeee02f9c79a26e9e57efebcc88115 (diff) | |
download | emacs-73a46a9c20be66b569c466b8b778a79b20b3b5f5.tar.gz |
[__hpux]: Define hpux. From Eric Backus.
[__sun]: Define sun. Reported by Kaveh Ghazi.
Diffstat (limited to 'src/getloadavg.c')
-rw-r--r-- | src/getloadavg.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c index 2411e6a9225..6209fef76f9 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c @@ -133,6 +133,14 @@ extern int errno; #define hpux #endif +#if defined (__hpux) && !defined (hpux) +#define hpux +#endif + +#if defined (__sun) && !defined (sun) +#define sun +#endif + #if defined(hp300) && !defined(hpux) #define MORE_BSD #endif @@ -529,7 +537,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) |