Skip to content

Commit

Permalink
Fixed ssize_t missing definition for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Kalatozishvili committed Sep 15, 2024
1 parent 2234492 commit 4fc9e6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/net/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#define _GNU_SOURCE
#endif

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

#include "sock.h"
#include "sync.h"
#include "xstr.h"
Expand Down

0 comments on commit 4fc9e6a

Please sign in to comment.