changeset 16413:79ff1c263f5d

[__hpux]: Define hpux. From Eric Backus. [__sun]: Define sun. Reported by Kaveh Ghazi.
author Jim Meyering <jim@meyering.net>
date Thu, 10 Oct 1996 03:29:50 +0000
parents 49f61db069a4
children 941a90cef0b4
files src/getloadavg.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/getloadavg.c	Wed Oct 09 20:30:23 1996 +0000
+++ b/src/getloadavg.c	Thu Oct 10 03:29:50 1996 +0000
@@ -133,6 +133,14 @@
 #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 @@
   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)