Small change to get MSVC compiler to see the select backend

Jonah Beckford jonah at diskuv.com
Thu Feb 27 14:43:10 CET 2025


I posted this diff initially at https://github.com/microsoft/vcpkg/pull/44045 because compiling libev with a MSVC compiler resulted in no backends:

-# if HAVE_SELECT && HAVE_SYS_SELECT_H
+# if HAVE_SELECT && (HAVE_SYS_SELECT_H || defined(_MSC_VER))
#  ifndef EV_USE_SELECT
#   define EV_USE_SELECT EV_FEATURE_BACKENDS
#  endif

Basically MSVC has no "sys/select.h" since MSVC uses winsocks2.h for the select function.

Could the change be incorporated?

Thanks. Jonah Beckford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20250227/db093b0d/attachment.htm>


More information about the libev mailing list