Windows: the loop's socket results in the type the socket calls return

ssize_t does not exist under MSVC, and the socket function table
already spells its send and recv results int there and ssize_t
elsewhere. That type is now named SOCKRET, beside SASIZETYPE, and the
event loop's copies of it use the name, so the MSVC build compiles
again.
This commit is contained in:
Vladimir Dubrovin committed 2026-11-02 12:11:09 +03:00
1 parent 235f899668
commit 0cf5dfc6a3
3 files changed
+4 -2

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ extern "C" {
#include <net/if.h>
#endif
#define SASIZETYPE socklen_t
#define SOCKRET ssize_t /* what a socket call returns: moved bytes or -1 */
#define SOCKET int
#define INVALID_SOCKET (-1)
#define _3proxy_mutex_t pthread_mutex_t