diff options
Diffstat (limited to 'ssh')
-rw-r--r-- | ssh/sshnc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ssh/sshnc.c b/ssh/sshnc.c index 7d42de8..0c912dd 100644 --- a/ssh/sshnc.c +++ b/ssh/sshnc.c @@ -1,11 +1,16 @@ #include <stdio.h> #include <stdlib.h> #include <errno.h> -#include <threads.h> #include <assert.h> #include <libssh/callbacks.h> #include "sshnc.h" +#ifdef __ANDROID__ +#define thread_local _Thread_local +#else +#include <threads.h> +#endif + // - We never use ssh_disconnect, just ssh_free. I believe the only added value // of ssh_disconnect is that it sends a polite quit message to the server, |