diff options
| author | rmalizia44 <[email protected]> | 2016-01-28 03:28:05 -0200 |
|---|---|---|
| committer | rmalizia44 <[email protected]> | 2016-01-28 03:28:05 -0200 |
| commit | be2ec608e2bdba4aa918806d558e171ff0e3c7c4 (patch) | |
| tree | 410e93bdaf7fa5add397a24da496071cca5e9f0a | |
| parent | c165e501932f8a3bf542d7643fc56713d3aedb7e (diff) | |
| download | mruby-be2ec608e2bdba4aa918806d558e171ff0e3c7c4.tar.gz mruby-be2ec608e2bdba4aa918806d558e171ff0e3c7c4.zip | |
Add _WIN32_WINNT definition to Avoid Windows Compilation Errors
the line #define _WIN32_WINNT 0x0501 will cause ws2tcpip.h to implement the missing functions freeaddrinfo, getaddrinfo and getnameinfo on windows
| -rw-r--r-- | src/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index 142562de2..e28d7cd5d 100644 --- a/src/socket.c +++ b/src/socket.c @@ -5,6 +5,8 @@ */ #ifdef _WIN32 + #define _WIN32_WINNT 0x0501 + #include <winsock2.h> #include <ws2tcpip.h> #include <windows.h> |
