Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1980 [patch] add missing WSAPOLLFD definition

WSL
assigned
Earnie Boyd
None
Bug
later
Feature_in_WSL_4.1
False
2014-12-28
2013-06-04
mark
No

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

Related

Issues: #2049

Discussion

  • Earnie Boyd
    Earnie Boyd
    2013-09-18

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,6 +5,7 @@
    
     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
    @@ -22,4 +23,4 @@
         #define LUP_DEEP                0x0001
         #define LUP_CONTAINERS          0x0002
         #define LUP_NOCONTAINERS        0x0004
    -
    +~~~~~
    
    • status: unread --> assigned
    • assigned_to: Earnie Boyd
     
  • Earnie Boyd
    Earnie Boyd
    2013-09-18

    • Type: Support --> Bug
    • Resolution: none --> later
    • Category: Unknown --> Feature_in_WSL_4.1