diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-09-24 15:38:22 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-09-24 15:38:22 +0300 |
commit | 727c2b4c7011c252fd1973358629cccbfecfc25d (patch) | |
tree | 6f23f76a951b594921e7161a5035cace9f46683c /pc/socket.h | |
parent | 9cfede253d3d5f6907a6a1c0263b08442267cd55 (diff) | |
download | egawk-727c2b4c7011c252fd1973358629cccbfecfc25d.tar.gz egawk-727c2b4c7011c252fd1973358629cccbfecfc25d.tar.bz2 egawk-727c2b4c7011c252fd1973358629cccbfecfc25d.zip |
Fix compilation warnings on MinGW with the latest runtime
reported by Marc de Bourget <marcdebourget@gmail.com>.
Diffstat (limited to 'pc/socket.h')
-rw-r--r-- | pc/socket.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pc/socket.h b/pc/socket.h index 41dd23cf..d7b890dd 100644 --- a/pc/socket.h +++ b/pc/socket.h @@ -7,7 +7,10 @@ #include <io.h> -#define _WIN32_WINNT 0x501 +#if !defined _WIN32_WINNT || _WIN32_WINNT < 0x501 +# undef _WIN32_WINNT +# define _WIN32_WINNT 0x501 +#endif #include <winsock2.h> #include <ws2tcpip.h> |