select is only possible network backend (excl. libevent) for Windows, as neither
poll or epoll are available for Windows.


-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prosody-dev/3b390a8cc12cbf946ba4.1677276012%40EI08_MatisseX.
# HG changeset patch
# User Vitaly Orekhov
# Date 1677275798 -10800
#      Sat Feb 25 00:56:38 2023 +0300
# Node ID 3b390a8cc12cbf946ba45d3cc7c15d6e891eb9db
# Parent  eaea3df507e226125eba063656db2cbcdc9c7618
util.poll: Use Windows Sockets 2 for select backend

select is only possible network backend (excl. libevent) for Windows, as neither
poll or epoll are available for Windows.

diff -r eaea3df507e2 -r 3b390a8cc12c util-src/poll.c
--- a/util-src/poll.c	Sat Feb 25 00:54:48 2023 +0300
+++ b/util-src/poll.c	Sat Feb 25 00:56:38 2023 +0300
@@ -36,7 +36,12 @@
 #endif
 #endif
 #ifdef USE_SELECT
+#ifndef _MSC_VER
 #include <sys/select.h>
+#else
+#include <winsock2.h>
+typedef long long suseconds_t;
+#endif
 #endif
 
 #include <lualib.h>

Reply via email to