include: Add stuff related to WSAPoll() (try 3)

Bruno Jesus 00cpxxx at gmail.com
Mon Jul 20 01:35:36 CDT 2015


On Monday, July 20, 2015, Sebastian Lackner <sebastian at fds-team.de> wrote:

> On 17.07.2015 18:29, Bruno Jesus wrote:
> > Try to apply Matteo's idea to not redefine the struct when port.h was
> > already included. I can't test in mingw myself unfortunately.
>
> I don't think this will work properly. The Linux pollfd struct contains
> "fd" with
> type "int", but on Windows its defined as "SOCKET" (which has size of a
> pointer).
> My personal preference would be to just leave out the "struct pollfd"
> definition
> here, and only declare WSAPOLLFD. Basically:
>
> +typedef struct
> +{
> +    SOCKET fd;
> +    SHORT events;
> +    SHORT revents;
> +} WSAPOLLFD;
>
> Not sure if this would be an acceptable solution for the other devs though.
>
>
Sounds perfect to me, thanks. Will resend soon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150720/0d016277/attachment.html>


More information about the wine-devel mailing list