solaris nfs_ping fixes

This commit is contained in:
Doug MacEachern 2005-02-21 02:58:53 +00:00
parent 2714eb3718
commit 99edef1178
1 changed files with 4 additions and 1 deletions

View File

@ -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_clnt.h>
#include <rpcsvc/nfs_prot.h>
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__sun)
#include <arpa/inet.h>
#endif
#ifdef __sun
#include <rpc/clnt_soc.h>
#endif
static int get_sockaddr(struct sockaddr_in *addr, char *host)
{