From 6c5d048095379a85f1862429b9049edc1c82e167 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 28 Jul 2016 14:09:51 +0100 Subject: [PATCH] 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? --- os/xserver_poll.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/xserver_poll.c b/os/xserver_poll.c index f152cda21..1927dfa10 100644 --- a/os/xserver_poll.c +++ b/os/xserver_poll.c @@ -84,6 +84,10 @@ #include /* string functions */ #include "xserver_poll.h" +#if defined(WIN32) && !defined(__CYGWIN__) +#include +#endif + /*---------------------------------------------------------------------------*\ Macros \*---------------------------------------------------------------------------*/