solaris gethostbyname_r

This commit is contained in:
Doug MacEachern 2006-02-23 05:08:33 +00:00
parent 415f33a079
commit ddaba2182d
1 changed files with 3 additions and 0 deletions

View File

@ -1563,6 +1563,9 @@ static struct hostent *sigar_gethostbyname(const char *name)
#if defined(__linux__) #if defined(__linux__)
gethostbyname_r(name, &hs, buffer, sizeof(buffer), gethostbyname_r(name, &hs, buffer, sizeof(buffer),
&hp, &err); &hp, &err);
#elif defined(__sun)
hp = gethostbyname_r(name, &hs, buffer, sizeof(buffer),
&err);
#else #else
hp = gethostbyname(name); hp = gethostbyname(name);
#endif #endif