solaris gethostbyname_r
This commit is contained in:
parent
415f33a079
commit
ddaba2182d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue