summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-10-10 03:29:50 +0000
committerJim Meyering <jim@meyering.net>1996-10-10 03:29:50 +0000
commitc71e4ac26997b0c4cad26fcaf6826135ede3959d (patch)
tree00c72bbef5a892c01919bcf2a803e9ead8c4f3ea
parent82e63166079199df5d3b8e2176d349ac6f9bca9c (diff)
downloadgunmake-c71e4ac26997b0c4cad26fcaf6826135ede3959d.tar.gz
[__hpux]: Define hpux. From Eric Backus.
[__sun]: Define sun. Reported by Kaveh Ghazi.
-rw-r--r--getloadavg.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/getloadavg.c b/getloadavg.c
index 2411e6a..6209fef 100644
--- a/getloadavg.c
+++ b/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)