diff options
author | fcolin | 2011-11-02 16:53:03 +0000 |
---|---|---|
committer | fcolin | 2011-11-02 16:53:03 +0000 |
commit | 3dc2483a30234be5b3fb4cd5f1f2c515089d3e24 (patch) | |
tree | 1531fdeb7ac47b02f6a5a98f9eb06b09b4f292e7 /src/ivy.c | |
parent | cbc77d2b7cbf19c2eb80bfe0b6100a0b9b8c1f06 (diff) | |
download | ivy-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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> |