summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/inet/resolv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index e5b2622d0..16802856e 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1207,7 +1207,9 @@ int res_init(void)
rp->nsaddr.sin_port = htons(NAMESERVER_PORT);
rp->ndots = 1;
/** rp->pfcode = 0; **/
+#ifdef __UCLIBC_HAS_EXTRA_COMPAT_RES_STATE__
rp->_vcsock = -1;
+#endif
/** rp->_flags = 0; **/
/** rp->qhook = NULL; **/
/** rp->rhook = NULL; **/