X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhost.c;h=b9aaebb45c713e43e31f97805421bc65218143ae;hp=bbf40222aabde4aca00520a3c0681d8266f86da3;hb=4f3dd6817348433eafde04a3c2946f43364de7ef;hpb=5d0073b8f290dee2e9bad3e83230f6b57dd06beb 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. */