diff --git a/sysdeps/solaris/glibtop_server.h b/sysdeps/solaris/glibtop_server.h index d23ee540..3e8a1838 100644 --- a/sysdeps/solaris/glibtop_server.h +++ b/sysdeps/solaris/glibtop_server.h @@ -46,6 +46,7 @@ BEGIN_LIBGTOP_DECLS #define GLIBTOP_SUID_PROC_SEGMENT 0 #define GLIBTOP_SUID_PROC_ARGS 0 #define GLIBTOP_SUID_PROC_MAP 0 +#define GLIBTOP_SUID_NETINFO 0 #define GLIBTOP_SUID_NETLOAD 0 #define GLIBTOP_SUID_INTERFACE_NAMES 0 #define GLIBTOP_SUID_PPP 0 diff --git a/sysdeps/solaris/netinfo.c b/sysdeps/solaris/netinfo.c index 21ed5860..16cfcec5 100644 --- a/sysdeps/solaris/netinfo.c +++ b/sysdeps/solaris/netinfo.c @@ -41,11 +41,12 @@ glibtop_init_netinfo_s (glibtop *server) /* Provides network statistics. */ -int -glibtop_get_netinfo_s (glibtop *server, glibtop_netinfo *buf, - const char *interface, unsigned transport) +glibtop_ifaddr * +glibtop_get_netinfo_s (glibtop *server, glibtop_array *array, + glibtop_netinfo *buf, const char *interface, + u_int64_t transport) { memset (buf, 0, sizeof (glibtop_netinfo)); - return 0; + return NULL; }