MINGW-packages/mingw-w64-python-hiredis/0001-fix-clock_gettime.patch
2025-05-23 22:44:31 +03:00

14 lines
369 B
Diff

diff --git a/net.c b/net.c
index b514bab..07edb67 100644
--- a/net.c
+++ b/net.c
@@ -277,7 +277,7 @@ static int redisContextTimeoutMsec(redisContext *c, long *result)
}
static long redisPollMillis(void) {
-#ifndef _MSC_VER
+#ifndef _WIN32
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
return (now.tv_sec * 1000) + now.tv_nsec / 1000000;