aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 5bbc7af59..9017c20e2 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -60,22 +60,22 @@
#include <sys/socket.h>
#endif
#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <sys/utsname.h>
+#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
+#endif
#if defined(WIN32) && defined(__GNUC__) || defined(__MINGW32__)
#include <errno.h>
#endif
-#ifdef HAVE_INET_NTOA_R
-#include "inet_ntoa_r.h"
-#endif
-
#include <curl/curl.h>
#include "urldata.h"
#include "sendf.h"