mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
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:
1 parent
235f899668
commit
0cf5dfc6a3
3 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user