aix fixes
This commit is contained in:
parent
208e0c449e
commit
9f399955ac
@ -239,7 +239,7 @@ int sigar_procfs_args_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
|
||||
sigar_proc_args_create(procargs);
|
||||
|
||||
//e.g. /proc/2/cmdline
|
||||
/* e.g. /proc/2/cmdline */
|
||||
if (total == 0) {
|
||||
procargs->number = 0;
|
||||
return SIGAR_OK;
|
||||
@ -418,6 +418,9 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info)
|
||||
#ifdef __sun
|
||||
#include <rpc/clnt_soc.h>
|
||||
#endif
|
||||
#ifdef _AIX
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
static int get_sockaddr(struct sockaddr_in *addr, char *host)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user