summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ivy.c b/src/ivy.c
index d784f50..a87d24e 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -28,6 +28,13 @@
#include <Ws2tcpip.h>
#include <windows.h>
#define snprintf _snprintf
+#ifdef __MINGW32__
+// should be removed in when defined in MinGW include of ws2tcpip.h
+extern const char * WSAAPI inet_ntop(int af, const void *src,
+ char *dst, socklen_t size);
+extern int WSAAPI inet_pton(int af, const char *src, void *dst);
+
+#endif
#else
#include <sys/time.h>
#include <arpa/inet.h>