os: Fix build of xserver_poll.c on MinGW

Include winsock.h for definition of fd_set type and select()

Future work: Maybe this also needs some error checking for fd > FD_SETSIZE?
This commit is contained in:
Jon Turney 2016-07-28 14:09:51 +01:00
parent 246b729df8
commit 6c5d048095
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@
#include <string.h> /* string functions */
#include "xserver_poll.h"
#if defined(WIN32) && !defined(__CYGWIN__)
#include <X11/Xwinsock.h>
#endif
/*---------------------------------------------------------------------------*\
Macros
\*---------------------------------------------------------------------------*/