diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index 360451a4..1248409e 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -33,7 +34,17 @@ #include -#define FIXED_TO_DOUBLE(x) (((double)x) / 65536.0) +/* not defined in aix 4.3 */ +#ifndef SBITS +#define SBITS 16 +#endif + +/* + * from libperfstat.h: + * "To calculate the load average, divide the numbers by (1<." + */ +#define FIXED_TO_DOUBLE(x) (((double)x) / (1<