summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
authorfcolin2011-11-02 16:53:03 +0000
committerfcolin2011-11-02 16:53:03 +0000
commit3dc2483a30234be5b3fb4cd5f1f2c515089d3e24 (patch)
tree1531fdeb7ac47b02f6a5a98f9eb06b09b4f292e7 /src/ivy.c
parentcbc77d2b7cbf19c2eb80bfe0b6100a0b9b8c1f06 (diff)
downloadivy-c-3dc2483a30234be5b3fb4cd5f1f2c515089d3e24.zip
ivy-c-3dc2483a30234be5b3fb4cd5f1f2c515089d3e24.tar.gz
ivy-c-3dc2483a30234be5b3fb4cd5f1f2c515089d3e24.tar.bz2
ivy-c-3dc2483a30234be5b3fb4cd5f1f2c515089d3e24.tar.xz
Update to compile under MinGW
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>