Make RES_OPTIONS=inet6 work.
Basically PR22196, but slightly modified. PR: bin/22196
This commit is contained in:
parent
46aa3347cb
commit
4a5af3d0cc
@ -61,6 +61,10 @@ gethostbyname(const char *name)
|
||||
{
|
||||
struct hostent *hp;
|
||||
|
||||
if ((_res.options & RES_INIT) == 0 && res_init() == -1) {
|
||||
h_errno = NETDB_INTERNAL;
|
||||
return (NULL);
|
||||
}
|
||||
if (_res.options & RES_USE_INET6) { /* XXX */
|
||||
hp = gethostbyname2(name, AF_INET6); /* XXX */
|
||||
if (hp) /* XXX */
|
||||
|
Loading…
x
Reference in New Issue
Block a user