[libev] The 'select' backend is available to MSVC (#44045)

This commit is contained in:
jonahbeckford 2025-04-07 13:34:29 -07:00 committed by GitHub
parent 1cd88e1515
commit d33fbc3dde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff --git a/ev.c b/ev.c
index ec212a1..b80b1e0 100644
--- a/ev.c
+++ b/ev.c
@@ -90,7 +90,7 @@
# define EV_USE_NANOSLEEP 0
# endif
-# 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

View File

@ -8,6 +8,7 @@ vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES "0000-event-fix-undefined-struct-timeval.patch"
"0001-use-select-with-msvc.patch"
)
set(LIBEV_LINK_FLAGS "")

View File

@ -1,7 +1,7 @@
{
"name": "libev",
"version": "4.33",
"port-version": 3,
"port-version": 4,
"description": "libev is a high-performance event loop/event model with lots of features.",
"homepage": "http://software.schmorp.de/pkg/libev.html",
"license": "BSD-2-Clause OR GPL-2.0-or-later"

View File

@ -4594,7 +4594,7 @@
},
"libev": {
"baseline": "4.33",
"port-version": 3
"port-version": 4
},
"libevdev": {
"baseline": "1.13.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "93adc0ea0491c2b0607d28bca4c732e3b353fc44",
"version": "4.33",
"port-version": 4
},
{
"git-tree": "048b4e081061376e4e6fdcd18670669162f79c7a",
"version": "4.33",