solaris nfs_ping fixes
This commit is contained in:
parent
2714eb3718
commit
99edef1178
|
@ -412,9 +412,12 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info)
|
||||||
#include <rpc/pmap_prot.h>
|
#include <rpc/pmap_prot.h>
|
||||||
#include <rpc/pmap_clnt.h>
|
#include <rpc/pmap_clnt.h>
|
||||||
#include <rpcsvc/nfs_prot.h>
|
#include <rpcsvc/nfs_prot.h>
|
||||||
#ifdef __FreeBSD__
|
#if defined(__FreeBSD__) || defined(__sun)
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __sun
|
||||||
|
#include <rpc/clnt_soc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static int get_sockaddr(struct sockaddr_in *addr, char *host)
|
static int get_sockaddr(struct sockaddr_in *addr, char *host)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue