1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

[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 <christopher.townsend@canonical.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Chris Townsend
2021-03-11 09:02:08 -05:00
parent c8b2e68fb8
commit a5bb333422

View File

@@ -26,6 +26,7 @@
#include <windows.h> #include <windows.h>
#include <winbase.h> #include <winbase.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h>
static int ssh_winlock_mutex_init (void **priv) static int ssh_winlock_mutex_init (void **priv)
{ {