diff --git a/src/os/solaris/sigar_os.h b/src/os/solaris/sigar_os.h index bd1e1e79..7cfd3993 100644 --- a/src/os/solaris/sigar_os.h +++ b/src/os/solaris/sigar_os.h @@ -19,6 +19,8 @@ typedef unsigned long long int u_int64_t; #include #include +#include "get_mib2.h" + /* avoid -Wall warning since solaris doesnt have a prototype for this */ int getdomainname(char *, int); @@ -222,6 +224,8 @@ struct sigar_t { proc_exename_func_t pexename; sigar_cache_t *fsdev; + + solaris_mib2_t mib2; }; #define kSTAT_uint(v, type) \ diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index d6e0de74..59f44b10 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -96,6 +96,9 @@ int sigar_os_open(sigar_t **sig) sigar->fsdev = NULL; + SIGAR_ZERO(&sigar->mib2); + sigar->mib2.sd = -1; + return SIGAR_OK; }