diff options
author | Chris Townsend <christopher.townsend@canonical.com> | 2021-03-11 09:02:08 -0500 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2021-08-17 15:46:54 +0200 |
commit | 51a0adfc18c5d30887f12cce6ded80dd145532a6 (patch) | |
tree | bca666883135f40ba29d2264b78b2857719f8418 | |
parent | b78db5f5d833edf0a8361a61828df52bd69ff9c4 (diff) | |
download | libssh-51a0adfc18c5d30887f12cce6ded80dd145532a6.tar.gz libssh-51a0adfc18c5d30887f12cce6ded80dd145532a6.tar.xz libssh-51a0adfc18c5d30887f12cce6ded80dd145532a6.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>
(cherry picked from commit a5bb333422c0ded2d0bab8367901946cab305245)
-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) { |