]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Include <netdb.h> where h_errno is used. Likewise for <errno.h> and errno.
[wget] / src / ftp.c
index 2b9eb0f267e4b63a60db95ae19e7afe35990aebe..e28f4596299e903c21e5c80e4de778c211d8f324 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -33,6 +33,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/types.h>
 #include <assert.h>
 #include <errno.h>
+#ifndef WINDOWS
+# include <netdb.h>            /* for h_errno */
+#endif
 
 #include "wget.h"
 #include "utils.h"