Commit aca77b586881803a1dd3594f3ecda514be0928fe
1 parent
2a4bf006
Exists in
master
and in
3 other branches
Ajustes para compilar na versão antiga do GTK
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
connect.c
... | ... | @@ -28,8 +28,15 @@ |
28 | 28 | */ |
29 | 29 | |
30 | 30 | #if defined(_WIN32) |
31 | + | |
32 | + // Compiling for WinXP or later: Expose getaddrinfo()/freeaddrinfo(). | |
33 | + #undef _WIN32_WINNT | |
34 | + #define _WIN32_WINNT 0x0501 | |
35 | + | |
31 | 36 | #include <winsock2.h> |
32 | 37 | #include <windows.h> |
38 | + #include <ws2tcpip.h> | |
39 | + | |
33 | 40 | #endif |
34 | 41 | |
35 | 42 | #include "globals.h" | ... | ... |