X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhost.c;h=b9aaebb45c713e43e31f97805421bc65218143ae;hb=889f705d1bc7eb439ddb0192249e44783196ce00;hp=bbf40222aabde4aca00520a3c0681d8266f86da3;hpb=78a765739543d5ca3bc83ad70f5d391b9d2af4f5;p=wget diff --git a/src/host.c b/src/host.c index bbf40222..b9aaebb4 100644 --- a/src/host.c +++ b/src/host.c @@ -36,6 +36,7 @@ as that of the covered work. */ #include #ifndef WINDOWS +# include # include # include # ifndef __BEOS__ @@ -58,6 +59,11 @@ as that of the covered work. */ # define NO_ADDRESS NO_DATA #endif +#if !HAVE_DECL_H_ERRNO +extern int h_errno; +#endif + + /* Lists of IP addresses that result from running DNS queries. See lookup_host for details. */