aboutsummaryrefslogtreecommitdiffstats
path: root/pc/socket.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-09-24 15:38:22 +0300
committerEli Zaretskii <eliz@gnu.org>2016-09-24 15:38:22 +0300
commit727c2b4c7011c252fd1973358629cccbfecfc25d (patch)
tree6f23f76a951b594921e7161a5035cace9f46683c /pc/socket.h
parent9cfede253d3d5f6907a6a1c0263b08442267cd55 (diff)
downloadegawk-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.h5
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>