summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/netdb_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/netdb_private.h')
-rw-r--r--lib/libc/net/netdb_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/net/netdb_private.h b/lib/libc/net/netdb_private.h
index 0b32780..cbdcb17 100644
--- a/lib/libc/net/netdb_private.h
+++ b/lib/libc/net/netdb_private.h
@@ -36,6 +36,8 @@
#define _HOSTBUFSIZE (8 * 1024)
#define _NETBUFSIZE 1025
+struct __res_state;
+
struct hostent_data {
uint32_t host_addr[4]; /* IPv4 or IPv6 */
char *h_addr_ptrs[_MAXADDRS + 1];
@@ -43,6 +45,7 @@ struct hostent_data {
char hostbuf[_HOSTBUFSIZE];
FILE *hostf;
int stayopen;
+ struct __res_state *res;
#ifdef YP
char *yp_domain;
#endif
OpenPOWER on IntegriCloud