1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67709

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