diff options
Diffstat (limited to 'lib/libc/net/getnetbyht.c')
-rw-r--r-- | lib/libc/net/getnetbyht.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/getnetbyht.c b/lib/libc/net/getnetbyht.c index 4696b1a..30422d5 100644 --- a/lib/libc/net/getnetbyht.c +++ b/lib/libc/net/getnetbyht.c @@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$"); #include <arpa/inet.h> #include <arpa/nameser.h> #include <netdb.h> +#include <resolv.h> #include <stdio.h> #include <string.h> #include <stdarg.h> @@ -111,7 +112,7 @@ again: *cp++ = '\0'; len = strlen(p) + 1; if (ep - bp < len) { - h_errno = NO_RECOVERY; + RES_SET_H_ERRNO(__res_state(), NO_RECOVERY); return -1; } strlcpy(bp, p, ep - bp); |