Fix load average support for AIX5 (Bug #563978 reported by Jeff Cunningham)
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@8381 06827809-a52a-0410-b366-d66718629ded
diff --git a/agent/mibgroup/ucd-snmp/loadave.c b/agent/mibgroup/ucd-snmp/loadave.c
index 064c106..70a45f3 100644
--- a/agent/mibgroup/ucd-snmp/loadave.c
+++ b/agent/mibgroup/ucd-snmp/loadave.c
@@ -224,7 +224,7 @@
#define FIX_TO_DBL(_IN) (((double) _IN)/((double) FSCALE))
#endif
#endif
-#ifdef aix4
+#if defined(aix4) || defined(aix5)
int favenrun[3];
#endif
#if defined(hpux10) || defined(hpux11)
@@ -259,7 +259,7 @@
r_ave[2] = pst_buf.psd_avg_15_min;
#elif !defined(cygwin)
#ifdef CAN_USE_NLIST
-#if aix4
+#if defined(aix4) || defined(aix5)
if (auto_nlist(LOADAVE_SYMBOL, (char *) favenrun, sizeof(favenrun)) ==
0)
return -1;