hpux has inet_ntop

This commit is contained in:
Doug MacEachern 2009-07-30 08:26:34 -07:00
parent e92da5240f
commit e3e45a39fe
1 changed files with 1 additions and 4 deletions

View File

@ -372,12 +372,9 @@ static char *sigar_inet_ntop(int af, const void *src, char *dst, int cnt)
} }
} }
#define sigar_inet_ntop_errno GetLastError() #define sigar_inet_ntop_errno GetLastError()
#elif !defined(NETWARE) && !defined(__hpux) #else
#define sigar_inet_ntop inet_ntop #define sigar_inet_ntop inet_ntop
#define sigar_inet_ntop_errno errno #define sigar_inet_ntop_errno errno
#else
#define sigar_inet_ntop(af, src, dst, size) NULL
#define sigar_inet_ntop_errno EINVAL
#endif #endif
SIGAR_DECLARE(int) sigar_net_address_to_string(sigar_t *sigar, SIGAR_DECLARE(int) sigar_net_address_to_string(sigar_t *sigar,