From a42ac7b1fbf6d743ab30fcc448e5a4163fab57d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B6derberg?= Date: Fri, 30 Oct 2015 00:27:57 +0100 Subject: [PATCH] Update README.build.md --- README.build.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.build.md b/README.build.md index 7be216eb..243bd24a 100644 --- a/README.build.md +++ b/README.build.md @@ -139,19 +139,21 @@ Building on Windows (MinGW) a) Add the following lines to C:\MinGW\include\winsock2.h: -#if(_WIN32_WINNT >= 0x0600) + ```c + #if(_WIN32_WINNT >= 0x0600) -typedef struct pollfd { + typedef struct pollfd { - SOCKET fd; - SHORT events; - SHORT revents; + SOCKET fd; + SHORT events; + SHORT revents; -} WSAPOLLFD, *PWSAPOLLFD, FAR *LPWSAPOLLFD; + } WSAPOLLFD, *PWSAPOLLFD, FAR *LPWSAPOLLFD; -WINSOCK_API_LINKAGE int WSAAPI WSAPoll(LPWSAPOLLFD fdArray, ULONG fds, INT timeout); + WINSOCK_API_LINKAGE int WSAAPI WSAPoll(LPWSAPOLLFD fdArray, ULONG fds, INT timeout); -#endif // (_WIN32_WINNT >= 0x0600) + #endif // (_WIN32_WINNT >= 0x0600) + ``` b) Create C:\MinGW\include\mstcpip.h and copy and paste the content from following link into it: