summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/inet_pton.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/inet_pton.h')
-rw-r--r--libs/libcurl/src/inet_pton.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/libcurl/src/inet_pton.h b/libs/libcurl/src/inet_pton.h
index c3dc5d0415..449ec47cf7 100644
--- a/libs/libcurl/src/inet_pton.h
+++ b/libs/libcurl/src/inet_pton.h
@@ -29,10 +29,20 @@
int Curl_inet_pton(int, const char *, void *);
#ifdef HAVE_INET_PTON
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
+#if defined(__AMIGA__)
+#define Curl_inet_pton(x,y,z) inet_pton(x,(unsigned char *)y,z)
+#else
#define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
#endif
+#endif
#endif /* HEADER_CURL_INET_PTON_H */