mike121 pushed a commit to branch master in repository guile. commit 1b0da42672262426bca7bb58e70fb753c628ffc3 Author: Mike Gran <spk...@yahoo.com> AuthorDate: Thu Jan 28 17:01:07 2021 -0800
on MinGW, prefer winsock2.h over sys/select in iselect * libguile/iselect.h [__MINGW32__]: add winsock2 include --- libguile/iselect.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libguile/iselect.h b/libguile/iselect.h index 3b66c0f..9d0c4e6 100644 --- a/libguile/iselect.h +++ b/libguile/iselect.h @@ -23,7 +23,11 @@ #include <sys/types.h> /* Needed for FD_SET on some systems. */ +#ifdef __MINGW32__ +#include <winsock2.h> +#else #include <sys/select.h> +#endif #include "libguile/scm.h"