mike121 pushed a commit to branch wip-mingw-guile-2.2 in repository guile. commit 82832992c4a1c6ea260e2c19804dfa0edf89693c Author: Michael Gran <spk...@yahoo.com> Date: Mon Apr 16 10:31:42 2018 -0700
Don't presume existence of sys/select.h in headers * libguile/iselect.h: guard sys/select.h with winsock2.h as fallback --- libguile/iselect.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libguile/iselect.h b/libguile/iselect.h index 945ad14..a573e2c 100644 --- a/libguile/iselect.h +++ b/libguile/iselect.h @@ -28,8 +28,11 @@ /* Needed for FD_SET on some systems. */ #include <sys/types.h> - +#if defined(SCM_HAVE_SYS_SELECT_H) #include <sys/select.h> +#elif defined(SCM_HAVE_WINSOCK2_H) +#include <winsock2.h> +#endif SCM_API int scm_std_select (int fds, fd_set *rfds, @@ -38,7 +41,6 @@ SCM_API int scm_std_select (int fds, struct timeval *timeout); #define SELECT_TYPE fd_set - #endif /* SCM_ISELECT_H */ /*