Skip to content

Commit

Permalink
Merge pull request #3239 from opatomic/win2kdns
Browse files Browse the repository at this point in the history
add support for win2k
  • Loading branch information
mpg authored May 4, 2020
2 parents 39461b0 + 2b2acf1 commit 1d632c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/net_sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@

#define IS_EINTR( ret ) ( ( ret ) == WSAEINTR )

#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501)
#undef _WIN32_WINNT
#if !defined(_WIN32_WINNT)
/* Enables getaddrinfo() & Co */
#define _WIN32_WINNT 0x0501
#endif
Expand All @@ -64,6 +63,9 @@

#include <winsock2.h>
#include <windows.h>
#if (_WIN32_WINNT < 0x0501)
#include <wspiapi.h>
#endif

#if defined(_MSC_VER)
#if defined(_WIN32_WCE)
Expand Down

0 comments on commit 1d632c2

Please sign in to comment.