Make RES_OPTIONS=inet6 work.

Basically PR22196, but slightly modified.

PR:	bin/22196
This commit is contained in:
Hajimu UMEMOTO 2000-10-27 12:34:52 +00:00
parent 46aa3347cb
commit 4a5af3d0cc

View File

@ -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 */