From 4fc9e6ab946a0f0a680dd93d0dfb332b2b55b6c3 Mon Sep 17 00:00:00 2001 From: Sandro Kalatozishvili Date: Mon, 16 Sep 2024 03:28:37 +0400 Subject: [PATCH] Fixed ssize_t missing definition for windows --- src/net/sock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/sock.c b/src/net/sock.c index aeb5285..81799b3 100644 --- a/src/net/sock.c +++ b/src/net/sock.c @@ -12,6 +12,11 @@ #define _GNU_SOURCE #endif +#if defined(_MSC_VER) +#include +typedef SSIZE_T ssize_t; +#endif + #include "sock.h" #include "sync.h" #include "xstr.h"