]> Zhao Yanbai Git Server - minix.git/commitdiff
nonamed doesn't like DNS requests over TCP. So, don't try to use them.
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 30 Sep 2005 12:48:26 +0000 (12:48 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 30 Sep 2005 12:48:26 +0000 (12:48 +0000)
lib/ip/sethostent.c

index d0b641607f1a467d286dbc920dda1f5f8b73341a..5ed5edeaf8af95d496baca7872a3e058c8609a84 100644 (file)
@@ -64,7 +64,12 @@ sethostent(stayopen)
        if ((_res.options & RES_INIT) == 0 && res_init() == -1)
                return;
        if (stayopen)
-               _res.options |= RES_STAYOPEN | RES_USEVC;
+       {
+               _res.options |= RES_STAYOPEN;
+#ifdef __minix_vmd
+               _res.options |= RES_USEVC;
+#endif
+       }
 }
 
 void