WSAPOLLFD is referenced in mswsock.h but not defined in w32api-4.0-1-
mingw32-rc-2. The missing definition is published at
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740094%28v=vs.85%29.aspx
The following patch adds it to winsock2.h:
diff --git a/include/winsock2.h b/include/winsock2.h
index 0bce638..ac7431f 100644
--- a/include/winsock2.h
+++ b/include/winsock2.h
@@ -912,6 +912,12 @@ typedef __AW(WSAQUERYSET) WSAQUERYSET;
typedef __AW(PWSAQUERYSET) PWSAQUERYSET;
typedef __AW(LPWSAQUERYSET) LPWSAQUERYSET;
+typedef struct pollfd {
+ SOCKET fd;
+ short events;
+ short revents;
+} WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
+
#define LUP_DEEP 0x0001
#define LUP_CONTAINERS 0x0002
#define LUP_NOCONTAINERS 0x0004
Diff: