diff options
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/netstuff.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/common/netstuff.c b/gdb/common/netstuff.c index c1cc8d9..27fdc73 100644 --- a/gdb/common/netstuff.c +++ b/gdb/common/netstuff.c @@ -21,8 +21,11 @@ #include <algorithm> #ifdef USE_WIN32API -#include <winsock2.h> -#include <wspiapi.h> +#if _WIN32_WINNT < 0x0501 +# undef _WIN32_WINNT +# define _WIN32_WINNT 0x0501 +#endif +#include <ws2tcpip.h> #else #include <netinet/in.h> #include <arpa/inet.h> |