1 /* vi: set sw=4 ts=4: */
3 * Mini xgethostbyname2 implementation.
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
12 #ifdef CONFIG_FEATURE_IPV6
13 struct hostent *xgethostbyname2(const char *name, int af)
15 struct hostent *retval;
17 if ((retval = gethostbyname2(name, af)) == NULL)
18 bb_herror_msg_and_die("%s", name);