vcpkg/ports/hiredis/fix-ssize_t.patch
chausner 1e421cc5d3
[hiredis] Update to 1.0.2 (#20724)
* Update hiredis to 1.0.2

* Update CI baseline

* Fix static builds of examples

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-10-15 19:18:51 -07:00

12 lines
309 B
Diff

diff --git a/hiredis.h b/hiredis.h
--- a/hiredis.h
+++ b/hiredis.h
@@ -40,6 +40,7 @@
#else
struct timeval; /* forward declaration */
typedef long long ssize_t;
+#define _SSIZE_T_ /* for compatibility with libuv */
#endif
#include <stdint.h> /* uintXX_t, etc */
#include "sds.h" /* for sds */