diff options
author | Chris Townsend <christopher.townsend@canonical.com> | 2021-03-11 09:02:08 -0500 |
---|---|---|
committer | Chris Townsend <christopher.townsend@canonical.com> | 2021-03-11 09:02:08 -0500 |
commit | a5bb333422c0ded2d0bab8367901946cab305245 (patch) | |
tree | aca51b94c68fab718f80431bc63afc729dfc23e8 /src/threads | |
parent | c8b2e68fb85283856dc8ab6bed7f8730a38e93f6 (diff) | |
download | libssh-a5bb333422c0ded2d0bab8367901946cab305245.tar.gz libssh-a5bb333422c0ded2d0bab8367901946cab305245.tar.xz libssh-a5bb333422c0ded2d0bab8367901946cab305245.zip |
[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>
Diffstat (limited to 'src/threads')
-rw-r--r-- | src/threads/winlocks.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <windows.h> #include <winbase.h> #include <errno.h> +#include <stdlib.h> static int ssh_winlock_mutex_init (void **priv) { |