From a5bb333422c0ded2d0bab8367901946cab305245 Mon Sep 17 00:00:00 2001 From: Chris Townsend Date: Thu, 11 Mar 2021 09:02:08 -0500 Subject: [PATCH] [winlocks] Include stdlib.h to avoid crash in Windows Due to the missing include, the compiler makes assumptions and leads to a crash in ssh_mutex_lock() during runtime. Signed-off-by: Chris Townsend Reviewed-by: Jakub Jelen --- src/threads/winlocks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threads/winlocks.c b/src/threads/winlocks.c index a1799531..da600418 100644 --- a/src/threads/winlocks.c +++ b/src/threads/winlocks.c @@ -26,6 +26,7 @@ #include #include #include +#include static int ssh_winlock_mutex_init (void **priv) {